void OnClickButton(object s, EventArgs args) { if (notConfigured) { IdeApp.Workbench.ShowGlobalPreferencesDialog(Toplevel as Window, "GeneralAuthorInfo"); UpdateStatus(); GenerateLogEntries(); return; } using (var dlg = new AddLogEntryDialog(entries)) MessageService.ShowCustomDialog(dlg, (Window)Toplevel); }
void OnClickButton (object s, EventArgs args) { if (notConfigured) { IdeApp.Workbench.ShowGlobalPreferencesDialog (Toplevel as Gtk.Window, "GeneralAuthorInfo"); UpdateStatus (); GenerateLogEntries (); return; } var dlg = new AddLogEntryDialog (entries); MessageService.ShowCustomDialog (dlg, (Gtk.Window) Toplevel); }