private void tb_ChangeTime_Click(object sender, EventArgs e) { FormTime ft = new FormTime(this.controller.CompData.Time); DialogResult result = ft.ShowDialog(); if (result == DialogResult.OK) { this.controller.Change(ft.Time); } }
private void tb_ChangeTime_Click(object sender, EventArgs e) { FormTime ft = new FormTime(this.compChart1.Time); ft.StartPosition = FormStartPosition.CenterParent; DialogResult result = ft.ShowDialog(); if (result == DialogResult.OK) { this.compChart1.Time = ft.Time; } }