Exemple #1
0
        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);
                            }
                        }
                    }
                }
            }
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 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();
         }
     }
 }
Exemple #4
0
 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();
         }
     }
 }
Exemple #5
0
 private void toolStripMenuItemListCurrentObjects_Click(object sender, EventArgs e)
 {
     StepBroMain.DumpCurrentObjectsToLog();
 }
Exemple #6
0
 private void parseAllFilesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     StepBroMain.StartFileParsing(false);
 }
Exemple #7
0
 private void menuItemListDynamicObjects_Click(object sender, EventArgs e)
 {
     StepBroMain.DumpCurrentObjectsToLog();
 }
Exemple #8
0
 private void timerPostInitAction_Tick(object sender, EventArgs e)
 {
     timerPostInitAction.Stop();
     StepBroMain.StartFileParsing(false);
 }