private void BT_EditScenario_Click(object sender, EventArgs e) { ScenarioProperties SP = new ScenarioProperties(); SP.MJD = SCN.MJD; SP.ScenarioName = ScnName; SP.Description = SCN.Description; if (SP.ShowDialog() != DialogResult.OK) return; //SP.ShowDialog(); SCN.MJD = SP.MJD; SCN.Description = SP.Description; ScnName = SP.ScenarioName; }
private void BT_EditScenario_Click(object sender, EventArgs e) { ScenarioProperties SP = new ScenarioProperties(); SP.MJD = SCN.MJD; SP.ScenarioName = ScnName; SP.Description = SCN.Description; if (SP.ShowDialog() != DialogResult.OK) { return; } //SP.ShowDialog(); SCN.MJD = SP.MJD; SCN.Description = SP.Description; ScnName = SP.ScenarioName; }