Esempio n. 1
0
        private void _OnEditButtonPressed()
        {
            EngineAssistant assistant = new EngineAssistant(
                Parent,
                Frontend.FrontendConfig,
                _SelectedEngine
                );

            assistant.Cancel += delegate {
                assistant.Destroy();

                // Restart the Dialog
                // HACK: holy shit, please refactor this mess!
                var dialog = new EngineManagerDialog(Parent, _EngineManager);
                dialog.Run();
                dialog.Destroy();
            };
            assistant.Close += delegate {
                assistant.Destroy();

                // Restart the Dialog
                // HACK: holy shit, please refactor this mess!
                var dialog = new EngineManagerDialog(Parent, _EngineManager);
                dialog.Run();
                dialog.Destroy();
            };
            assistant.ShowAll();
        }
Esempio n. 2
0
        private void _OnNewButtonPressed()
        {
            EngineAssistant assistant = new EngineAssistant(
                this,
                Frontend.FrontendConfig
                );

            assistant.Cancel += delegate {
                assistant.Destroy();

                // Restart the Dialog
                // HACK: holy shit, please refactor this mess!
                EngineManagerDialog dialog = new EngineManagerDialog(_EngineManager);
                dialog.Run();
                dialog.Destroy();
            };
            assistant.Close += delegate {
                assistant.Destroy();

                // Restart the Dialog
                // HACK: holy shit, please refactor this mess!
                EngineManagerDialog dialog = new EngineManagerDialog(_EngineManager);
                dialog.Run();
                dialog.Destroy();
            };
            assistant.ShowAll();
        }
Esempio n. 3
0
        public static void ShowEngineManagerDialog()
        {
            Trace.Call();

            EngineManagerDialog diag = new EngineManagerDialog(_MainWindow.EngineManager);

            diag.Run();
            diag.Destroy();
        }
Esempio n. 4
0
        public static void ShowEngineManagerDialog(string engine)
        {
            Trace.Call(engine);

            EngineManagerDialog diag = new EngineManagerDialog(_MainWindow.EngineManager);

            if (!String.IsNullOrEmpty(engine))
            {
                diag.SelectedEngine = engine;
                // 1 == connect button
                diag.Respond(1);
            }
            else
            {
                diag.Run();
            }
            diag.Destroy();
        }
Esempio n. 5
0
        public static void ShowEngineManagerDialog(string engine)
        {
            Trace.Call(engine);

            var diag = new EngineManagerDialog(_MainWindow,
                                               _MainWindow.EngineManager);
            if (!String.IsNullOrEmpty(engine)) {
                diag.SelectedEngine = engine;
                // 1 == connect button
                diag.Respond(1);
            } else {
                diag.Run();
            }
            diag.Destroy();
        }
Esempio n. 6
0
        private void _OnNewButtonPressed()
        {
            EngineAssistant assistant = new EngineAssistant(
                this,
                Frontend.FrontendConfig
            );
            assistant.Cancel += delegate {
                assistant.Destroy();

                // Restart the Dialog
                // HACK: holy shit, please refactor this mess!
                EngineManagerDialog dialog = new EngineManagerDialog(_EngineManager);
                dialog.Run();
                dialog.Destroy();
            };
            assistant.Close += delegate {
                assistant.Destroy();

                // Restart the Dialog
                // HACK: holy shit, please refactor this mess!
                EngineManagerDialog dialog = new EngineManagerDialog(_EngineManager);
                dialog.Run();
                dialog.Destroy();
            };
            assistant.ShowAll();
        }
Esempio n. 7
0
        private void _OnEditButtonPressed()
        {
            EngineAssistant assistant = new EngineAssistant(
                Parent,
                Frontend.FrontendConfig,
                _SelectedEngine
            );
            assistant.Cancel += delegate {
                assistant.Destroy();

                // Restart the Dialog
                // HACK: holy shit, please refactor this mess!
                var dialog = new EngineManagerDialog(Parent, _EngineManager);
                dialog.Run();
                dialog.Destroy();
            };
            assistant.Close += delegate {
                assistant.Destroy();

                // Restart the Dialog
                // HACK: holy shit, please refactor this mess!
                var dialog = new EngineManagerDialog(Parent, _EngineManager);
                dialog.Run();
                dialog.Destroy();
            };
            assistant.ShowAll();
        }
Esempio n. 8
0
        public static void ShowEngineManagerDialog()
        {
            Trace.Call();

            EngineManagerDialog diag = new EngineManagerDialog(_MainWindow.EngineManager);
            diag.Run();
            diag.Destroy();
        }