Exemplo n.º 1
0
        private void btnCalcHJD_Click(object sender, EventArgs e)
        {
            var frm = new frmHJDCalculation();
            frm.TimeOfMinimumJD = Results.Time_Of_Minimum_JD;
            frm.ShowDialog(this);
            if (!double.IsNaN(frm.TimeOfMinimumHJD))
            {
                tbxT0HJD.Text = Convert.ToString(frm.TimeOfMinimumHJD);
                if (PolyResults != null)
                    tbxT0HJD_CF.Text = (frm.TimeCorrectionHJD + PolyResults.Time_Of_Minimum_JD).ToString();

                btnCalcHJD.Visible = false;
                btnCalcHJD2.Visible = false;
            }
        }
Exemplo n.º 2
0
        private void btnCalcHJD_Click(object sender, EventArgs e)
        {
            var frm = new frmHJDCalculation();

            frm.TimeOfMinimumJD = Results.Time_Of_Minimum_JD;
            frm.ShowDialog(this);
            if (!double.IsNaN(frm.TimeOfMinimumHJD))
            {
                tbxT0HJD.Text = Convert.ToString(frm.TimeOfMinimumHJD);
                if (PolyResults != null)
                {
                    tbxT0HJD_CF.Text = (frm.TimeCorrectionHJD + PolyResults.Time_Of_Minimum_JD).ToString();
                }

                btnCalcHJD.Visible  = false;
                btnCalcHJD2.Visible = false;
            }
        }