private void BT_ChangeDate_Click(object sender, EventArgs e) { DateChange DC = new DateChange(); DC.PickedTime = dt; if (DC.ShowDialog() == DialogResult.OK) { MJD = DC.PickedMJD; dt = DC.PickedTime; } DialogResult = DialogResult.None; }