private void AddStarClass_Click(object sender, EventArgs e) { StarForm starForm = new StarForm(); starForm.repo = repo; starForm.AddStar.Enabled = true; starForm.Delete.Enabled = false; starForm.Edit.Enabled = false; starForm.ShowDialog(); Reload(); }
private void EditStarClass_Click(object sender, EventArgs e) { StarForm starForm = new StarForm(); var spectralClass = bsSpectralClass.Current as SpectralClass; starForm.SetSpectralClass(spectralClass); starForm.SpectralClassTextBox.ReadOnly = true; starForm.Delete.Enabled = false; starForm.AddStar.Enabled = false; starForm.Edit.Enabled = true; starForm.repo = repo; starForm.ShowDialog(); Reload(); }
private void openStar_Click_1(object sender, EventArgs e) { try { StarForm starForm = new StarForm(); var spectralClass = bsSpectralClass.Current as SpectralClass; starForm.SetSpectralClass(spectralClass); starForm.ShowDialog(); } catch (NotImplementedException ex) { LogUtility.ErrorLog($"Error №1 {ex.Message}"); MessageBox.Show($"Error №1 {ex.Message}"); } catch (Exception ex) { LogUtility.ErrorLog(ex); MessageBox.Show($"Error №2 {ex.Message}"); } }