Private
Public Access
Code clean up
This commit is contained in:
1 parent
9ee1c79795
commit
c726739419
5 files changed
+3
-9
No files matched your search
@@ -1,5 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace Advanced_Software_Engineering {
|
namespace Advanced_Software_Engineering {
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Advanced_Software_Engineering {
|
namespace Advanced_Software_Engineering {
|
||||||
|
|
||||||
public static partial class MenuManager {
|
public static partial class MenuManager {
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The variable simply keep track of the windows that are currently shown (excluding <see cref="Menu"/>).
|
/// The variable simply keep track of the windows that are currently shown (excluding <see cref="Menu"/>).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Advanced_Software_Engineering.Verbs.Value {
|
namespace Advanced_Software_Engineering.Verbs.Value {
|
||||||
|
|
||||||
@@ -10,6 +9,7 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
|||||||
|
|
||||||
//Common characters that people might try
|
//Common characters that people might try
|
||||||
private char[] illegalCharacters = "1234567890!?/+- \"'@#~;:><,.`¬|[]{}\\£$%^&*()".ToCharArray();
|
private char[] illegalCharacters = "1234567890!?/+- \"'@#~;:><,.`¬|[]{}\\£$%^&*()".ToCharArray();
|
||||||
|
|
||||||
private string[] illegalNames =
|
private string[] illegalNames =
|
||||||
{ "var",
|
{ "var",
|
||||||
"move", "moveto",
|
"move", "moveto",
|
||||||
@@ -97,7 +97,6 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
|||||||
throw new Exception("Not implemented yet");
|
throw new Exception("Not implemented yet");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ExecuteVerb() {
|
public void ExecuteVerb() {
|
||||||
|
|||||||
-1
@@ -50,7 +50,6 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
|||||||
this.variable1 = variable1;
|
this.variable1 = variable1;
|
||||||
this.variable2 = variable2;
|
this.variable2 = variable2;
|
||||||
|
|
||||||
|
|
||||||
//Check for bad input
|
//Check for bad input
|
||||||
if (this.operation > 3 && this.operation < 0) throw new Exception("Bad operation");
|
if (this.operation > 3 && this.operation < 0) throw new Exception("Bad operation");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ namespace Advanced_Software_Engineering {
|
|||||||
|
|
||||||
//check for names in directory
|
//check for names in directory
|
||||||
if (drawer.CheckVariableExists(command)) {
|
if (drawer.CheckVariableExists(command)) {
|
||||||
|
|
||||||
if (commandParameters.Length == 1) {
|
if (commandParameters.Length == 1) {
|
||||||
return new UpdateVariable(drawer, command, ValueFactory.CreateValue(drawer, commandParameters[0]));
|
return new UpdateVariable(drawer, command, ValueFactory.CreateValue(drawer, commandParameters[0]));
|
||||||
} else throw new Exception(command + "needs something to be assigned to it");
|
} else throw new Exception(command + "needs something to be assigned to it");
|
||||||
|
|||||||
Reference in new issue
Block a user