private void toolStripMenuItemCreateAllObjectPanels_Click(object sender, EventArgs e) { var objects = StepBroMain.GetService <Core.Data.IDynamicObjectManager>().ListKnownObjects().ToList(); var panelManager = StepBroMain.GetService <Core.Data.IObjectPanelManager>(); foreach (var panelInfo in panelManager.ListPanelTypes().Where(t => t.IsObjectPanel)) { foreach (var objContainer in objects) { if (objContainer.Object != null && panelInfo.IsCompatibleWithObject(objContainer.Object)) { if (panelManager.GetPanelCreationOption(panelInfo, objContainer) == Core.Data.PanelCreationOption.Possible) { var panel = panelManager.CreateObjectWinFormsPanel(panelInfo, objContainer); if (panel != null) { var window = new ObjectPanelDockWindow(StepBroMain.ServiceManager); window.SetPanel(panelInfo, panel); window.Show(dockPanel); } } } } } }
public MainForm() { Instance = this; this.InitializeComponent(); this.AutoScaleMode = AutoScaleMode.Dpi; StepBroMain.Initialize(); //this.SeSBPlashScreen(); m_commandLineOptions = StepBro.Core.General.CommandLineParser.Parse <CommandLineOptions>(null, Environment.GetCommandLineArgs()); this.CreateStandardControls(); m_solutionExplorer.RightToLeftLayout = this.RightToLeftLayout; m_deserializeDockContent = new DeserializeDockContent(this.GetContentFromPersistString); vsToolStripExtender.DefaultRenderer = _toolStripProfessionalRenderer; dockPanel.DocumentStyle = DocumentStyle.DockingMdi; }
private void menuItemDebugStartElementSelectedInEditor_Click(object sender, EventArgs e) { if (m_mainScriptExecution == null) { StepBroMain.StartFileParsing(false); StepBroMain.Actions.AddTask("Execute Selected Procedure", true, () => { return(StepBroMain.LastParsingErrorCount == 0); }, (context) => { this.ExecuteProcedureUnderCursor(); }); } else { if (m_mainScriptExecution.Task.CurrentState == StepBro.Core.Tasks.TaskExecutionState.Paused) { m_mainScriptExecution.Task.RequestContinue(); } } }
private void StartButtonPressed() { if (m_mainScriptExecution == null) { if (toolStripComboBoxExecutionTarget.SelectedIndex >= 0) { StepBroMain.StartFileParsing(false); StepBroMain.Actions.AddTask("Execute Selected Procedure", true, () => { return(StepBroMain.LastParsingErrorCount == 0); }, (context) => { this.ExecuteSelectedProcedure(); }); } } else { if (m_mainScriptExecution.Task.CurrentState == StepBro.Core.Tasks.TaskExecutionState.Paused) { m_mainScriptExecution.Task.RequestContinue(); } } }
private void toolStripMenuItemListCurrentObjects_Click(object sender, EventArgs e) { StepBroMain.DumpCurrentObjectsToLog(); }
private void parseAllFilesToolStripMenuItem_Click(object sender, EventArgs e) { StepBroMain.StartFileParsing(false); }
private void menuItemListDynamicObjects_Click(object sender, EventArgs e) { StepBroMain.DumpCurrentObjectsToLog(); }
private void timerPostInitAction_Tick(object sender, EventArgs e) { timerPostInitAction.Stop(); StepBroMain.StartFileParsing(false); }