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