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(); }
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(); }
public static void ShowEngineManagerDialog() { Trace.Call(); EngineManagerDialog diag = new EngineManagerDialog(_MainWindow.EngineManager); diag.Run(); diag.Destroy(); }
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(); }
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(); }