Beispiel #1
0
        void CommandParser(string argument)
        {
            if (argument != null)
            {
                commandLine.TryParse(argument);
                var command = commandLine.Argument(0);

                switch (command)
                {
                case "reset":
                    lcd_ore.Search("ORE");
                    controller_refinery.Search();
                    controller_cargo_ore.Search();
                    controller_cargo_ingot.Search();
                    controller_refinery.RefineryInit();
                    RefineryOreCleanup();
                    RefineryIngotCleanup();
                    DisplayOre();
                    break;

                case "test":
                    Echo("Test");
                    Lcd lcd_test = new Lcd(this);
                    lcd_test.Search("Test");
                    if (lcd_test.IsEmpty)
                    {
                        Echo("Not found lcd Test");
                    }
                    else
                    {
                        Echo("Found lcd Test");
                        lcd_test.GetDrawing().Test();
                        lcd_test.GetDrawing().Dispose();
                    }
                    break;

                default:
                    //Echo("Command:");
                    //Echo(" reset");
                    break;
                }
            }
        }