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(); } }
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(); } }