public ActionsForm()
        {
            MissingAssemblyManager.Initialize();

            InitializeComponent();

            lblExecutionPlace.Text = "Executing in process: " + System.Diagnostics.Process.GetCurrentProcess().ProcessName;

            this.Text = "Actions for " + System.Diagnostics.Process.GetCurrentProcess().ProcessName;


            FillForms();
        }
Beispiel #2
0
        public static void Initialize(bool showActionsFormAsDialog)
        {
            ConsoleDebugger.ConsoleDebugger.Instance.Initialize();
            // ensure missing assemblies are loaded
            MissingAssemblyManager.Initialize();

            if (showActionsFormAsDialog)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new ActionsForm());
            }
            else
            {
                ActionsForm dlg = new ActionsForm();
                dlg.Show();
                dlg.FormClosed += (s, ev) => dlg.Dispose();
            }
        }