Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
        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;
            }
        }