Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 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}");
     }
 }