Beispiel #1
0
        private void 增加计算节点ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ComputeNodeEditForm form = new ComputeNodeEditForm();

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                mgr.Add(form.ComputeNode);
                mgr.Save();
                BindMain();
            }
        }
Beispiel #2
0
        private void 修改计算节点ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GofComputeNode      curent = this.bindingSource1.Current as GofComputeNode;
            ComputeNodeEditForm form   = new ComputeNodeEditForm(curent);

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                mgr.Edit(curent, this.bindingSource1.IndexOf(curent));
                mgr.Save();
                BindMain();
            }
        }