Refactored Commands into VerbFactory

This commit is contained in:
Lukasz Baldyga committed 2020-10-25 06:14:52 +00:00
1 parent b5723ec5bc
commit 731005fc9b
3 files changed
+2 -10

No files matched your search

@@ -82,7 +82,7 @@
<Compile Include="Windows\AboutWindow.Designer.cs"> <Compile Include="Windows\AboutWindow.Designer.cs">
<DependentUpon>AboutWindow.cs</DependentUpon> <DependentUpon>AboutWindow.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Command.cs" /> <Compile Include="Verbs\VerbFactory.cs" />
<Compile Include="Commander.cs" /> <Compile Include="Commander.cs" />
<Compile Include="Drawer.cs" /> <Compile Include="Drawer.cs" />
<Compile Include="Windows\DrawPreview.cs"> <Compile Include="Windows\DrawPreview.cs">
@@ -84,6 +84,7 @@ namespace Advanced_Software_Engineering {
return double.Parse(text); return double.Parse(text);
} }
//TODO: Make unit tests for this function
public static Point ConvertToPoint(string text1, string text2) { public static Point ConvertToPoint(string text1, string text2) {
return new Point(ConvertToInt(text1), ConvertToInt(text2)); return new Point(ConvertToInt(text1), ConvertToInt(text2));
} }
@@ -139,13 +139,4 @@ namespace Advanced_Software_Engineering {
} }
} }
abstract class Value {
}
class FlowControl //: Verb //This one will help us in part 2
{
}
} }