// Token: 0x06000531 RID: 1329 RVA: 0x00024607 File Offset: 0x00022807 public void RemoveCommand(ToolCommand removeCmd) { if (Parent != null) { Parent.RemoveCommand(this); } }
public List <ToolCommand> GetCommands() { List <ToolCommand> tcl = new List <ToolCommand>(); ToolCommand tc = new ToolCommand("Open SPARK Studio"); tc.Summoned += (a, b) => ShowForm(); tcl.Add(tc); return(tcl); }
public List <ToolCommand> GetCommands() { List <ToolCommand> retList = new List <ToolCommand>(); ToolCommand showForm = new ToolCommand("Open METAL Composer"); showForm.Summoned += (a, b) => ShowForm(); retList.Add(showForm); return(retList); }
public List <ToolCommand> GetCommands() { List <ToolCommand> returned = new List <ToolCommand>(); ToolCommand appear = new ToolCommand("Open Twister"); appear.Summoned += (a, b) => ShowForm(); returned.Add(appear); return(returned); }
public void ItRunsWithQuietVerbosityByDefault() { var result = new ToolCommand() .ExecuteWithCapturedOutput("install -g nonexistent_tool_package"); result .Should() .Fail() .And .NotHaveStdOutContaining("Restoring"); }
public void ItRunsWithTheSpecifiedVerbosity() { var result = new ToolCommand() .ExecuteWithCapturedOutput("install -g -v:m nonexistent_tool_package"); result .Should() .Fail(); result .StdOut .Should() .ContainVisuallySameFragmentIfNotLocalized("Restoring"); }
// Token: 0x0600052F RID: 1327 RVA: 0x000245FC File Offset: 0x000227FC public void AddCommand(ToolCommand addCmd) { childs = addCmd; }
public void TriggerCommand() { if (CommandsQueue.Count > 0) { ToolCommand cmd = CommandsQueue[0]; CommandsQueue.Clear(); switch (cmd) { case ToolCommand.DrawBuildingPoly: HeatSourceLayoutApp.tooPanel.changeBtnStyle(1); HeatSourceLayoutApp.tooPanel.drawBuildingBtn_Click(null, null); break; case ToolCommand.DrawBuildingRect: HeatSourceLayoutApp.tooPanel.changeBtnStyle(2); HeatSourceLayoutApp.tooPanel.drawRectBtn_Click(null, null); break; case ToolCommand.DrawPipeLine: HeatSourceLayoutApp.tooPanel.changeBtnStyle(3); HeatSourceLayoutApp.tooPanel.drawPiplineBtn_Click(null, null); break; case ToolCommand.DrawHeatProducer: HeatSourceLayoutApp.tooPanel.changeBtnStyle(4); HeatSourceLayoutApp.tooPanel.addSourceBtn_Click(null, null); break; case ToolCommand.DrawSubStation: HeatSourceLayoutApp.tooPanel.changeBtnStyle(5); HeatSourceLayoutApp.tooPanel.addStationBtn_Click(null, null); break; case ToolCommand.DrawHeatProducerSubStationCloud: HeatSourceLayoutApp.tooPanel.changeBtnStyle(6); HeatSourceLayoutApp.tooPanel.connectHSBtn_Click(null, null); break; case ToolCommand.DrawHeatProducerBuildingCloud: HeatSourceLayoutApp.tooPanel.changeBtnStyle(7); HeatSourceLayoutApp.tooPanel.connectHBBtn_Click(null, null); break; case ToolCommand.DrawSubStationBuildingCloud: HeatSourceLayoutApp.tooPanel.changeBtnStyle(8); HeatSourceLayoutApp.tooPanel.connectSBBtn_Click(null, null); break; case ToolCommand.DrawPipeLineBuilding: HeatSourceLayoutApp.tooPanel.changeBtnStyle(10); HeatSourceLayoutApp.tooPanel.drawPiplineBuildingBtn_Click(null, null); break; case ToolCommand.ImportBackgroundImage: HeatSourceLayoutApp.tooPanel.changeBtnStyle(11); HeatSourceLayoutApp.tooPanel.importImageBtn_Click(null, null); break; case ToolCommand.AdjustImageScale: HeatSourceLayoutApp.tooPanel.changeBtnStyle(12); HeatSourceLayoutApp.tooPanel.ajustPropBtn_Click(null, null); break; case ToolCommand.GenerateDocument: HeatSourceLayoutApp.tooPanel.changeBtnStyle(9); HeatSourceLayoutApp.tooPanel.generateIntroBtn_Click(null, null); break; } } }
public void AddCommand(ToolCommand cmd) { CommandsQueue.Add(cmd); }