示例#1
0
        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);
            }
        }
示例#2
0
文件: FormChart2.cs 项目: wanwei/sc2
        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;
            }
        }