Beispiel #1
0
 private void NonUIControl()
 {
     using (CommandLineHandler commandLineHandler = new CommandLineHandler(commandLineArguments))
     {
         commandLineHandler.MyBlueprint = masterBlueprint;
         commandLineHandler.Start();
         if (commandLineHandler.MyBlueprint.HasUsableData)
         {
             masterBlueprint = commandLineHandler.MyBlueprint;
             if (GetPointData())
             {
                 MessageBox.Show("calcs done..ready to output", "info...", MessageBoxButton.OK, MessageBoxImage.Information);
                 //access writer
                 BluePrintXml writeBlueprint = new BluePrintXml(masterBlueprint, blueprintData);
                 writeBlueprint.MakeBaseStructure();
                 writeBlueprint.BluePrintFileHandling();
             }
         }
         else
         {
             //"Data...is..bad. ugrh \n" msg
         }
         commandLineHandler.Dispose();
     }
     MessageBox.Show("output done.", "Finished.", MessageBoxButton.OK, MessageBoxImage.Information);
 }
Beispiel #2
0
 private void RepeatingChunk()
 {
     myBLueprintModel                   = new BlueprintModel();
     myBLueprintModel.BlockSize         = blockSize;
     myBLueprintModel.BlockArmour       = blockArmour;
     myBLueprintModel.BlueprintName     = blueprintName;
     myBLueprintModel.BlueprintFilePath = testPath;
     myBLueprintModel.BlockColour       = new Utilities.SeHSV(0, -100, -90);
     myBLueprintModel.Shape             = "circle";
     myBLueprintModel.ShapeFraction     = "quarter";
     myBLueprintModel.Solid             = false;
     myBLueprintModel.SteamId           = "123456789";
     myBLueprintModel.SteamName         = "itsme";
     myBLueprintModel.XAxis             = 11;
     myBLueprintModel.YAxis             = 12;
     myBLueprintModel.ZAxis             = 13;
     Assert.IsTrue(myBLueprintModel.HasUsableData);
     if (myBLueprintModel.HasUsableData)
     {
         testData = new HashSet <Point3D>();
         testData.Add(new Point3D(0, 0, 0));
         testData.Add(new Point3D(1, 0, 0));
         testData.Add(new Point3D(2, 0, 0));
         testData.Add(new Point3D(0, 1, 0));
         Assert.Greater(testData.Count, 0);
         BluePrintXml mfh = new BluePrintXml(myBLueprintModel, testData);
         mfh.MakeBaseStructure();
         mfh.BluePrintFileHandling();
     }
 }