Esempio n. 1
0
        private void Edit()
        {
            Task         curent = this.bindingSource_task.Current as Task;
            TaskEditForm form   = new TaskEditForm(curent);

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                mgr.Edit(curent, this.bindingSource_task.IndexOf(curent));
                mgr.Save();
                BindMain();
            }
        }
Esempio n. 2
0
        //增加计算任务
        private void 增加计算节点ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TaskEditForm form = new TaskEditForm();

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                //this.bindingSource_raw.Add(form.task);
                mgr.Add(form.Task);
                mgr.Save();
                BindMain();
            }
        }