private void ButtonOptionsClick(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; var formProjectConfiguration = new FormProjectConfiguration {Project = _formProject.Project}; if (formProjectConfiguration.ShowDialog(this) == DialogResult.OK) { Bind(formProjectConfiguration.Project); } } catch (Exception ex) { Program.HandleException(this, ex, Strings.Error); } finally { Cursor = Cursors.Default; } }
private void ButtonNewProjectClick(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; var formProjectConfiguration = new FormProjectConfiguration(); if (formProjectConfiguration.ShowDialog(this) == DialogResult.OK) { SelectedProject = formProjectConfiguration.Project; DialogResult = DialogResult.OK; Close(); } } catch (Exception ex) { Program.HandleException(this, ex, Strings.Error); } finally { Cursor = Cursors.Default; } }