コード例 #1
0
ファイル: EngineManagerDialog.cs プロジェクト: jamesaxl/smuxi
        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();
        }
コード例 #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();
        }
コード例 #3
0
        public static void ShowEngineManagerDialog()
        {
            Trace.Call();

            EngineManagerDialog diag = new EngineManagerDialog(_MainWindow.EngineManager);

            diag.Run();
            diag.Destroy();
        }
コード例 #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();
        }
コード例 #5
0
ファイル: Frontend.cs プロジェクト: knocte/smuxi
        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();
        }
コード例 #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();
        }
コード例 #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();
        }
コード例 #8
0
ファイル: Frontend.cs プロジェクト: txdv/smuxi
        public static void ShowEngineManagerDialog()
        {
            Trace.Call();

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