Пример #1
0
 private void miAbsFluxProgramStars_Click(object sender, EventArgs e)
 {
     if (m_AbsFluxCalibrator.IsCalibrated)
     {
         var frmExportConfig = new frmConfigureAbsFluxExport();
         frmExportConfig.StartPosition = FormStartPosition.CenterParent;
         if (frmExportConfig.ShowDialog(this) == DialogResult.OK)
         {
             if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
             {
                 m_AbsFluxCalibrator.ExportProgramStarsData(saveFileDialog.FileName, frmExportConfig.SelectedExportMags);
             }
         }
     }
     else
     {
         MessageBox.Show(this, "Not calibrated", "Tangra", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #2
0
 private void miAbsFluxProgramStars_Click(object sender, EventArgs e)
 {
     if (m_AbsFluxCalibrator.IsCalibrated)
     {
         var frmExportConfig = new frmConfigureAbsFluxExport();
         frmExportConfig.StartPosition = FormStartPosition.CenterParent;
         if (frmExportConfig.ShowDialog(this) == DialogResult.OK)
         {
             if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
             {
                 m_AbsFluxCalibrator.ExportProgramStarsData(saveFileDialog.FileName, frmExportConfig.SelectedExportMags);
             }
         }
     }
     else
         MessageBox.Show(this, "Not calibrated", "Tangra", MessageBoxButtons.OK, MessageBoxIcon.Error);
 }