Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #3
0
        public static void ShowEngineManagerDialog()
        {
            Trace.Call();

            EngineManagerDialog diag = new EngineManagerDialog(_MainWindow.EngineManager);

            diag.Run();
            diag.Destroy();
        }
Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #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();
        }
        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();
        }
Beispiel #8
0
        public static void ShowEngineManagerDialog()
        {
            Trace.Call();

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