private void btnNewRev_Click(object sender, EventArgs e) { EditRev er = new EditRev(ref this.revSet, this.tvRevisions.Nodes.Count, cd, propertySet.GetProperty("REVISION LEVEL")); er.Added += er_Added; er.AddedLvl += er_AddedLvl; er.new_rev = true; er.ShowDialog(); if (!IsDisposed) { Init(); } }
private void btnEditRev_Click(object sender, EventArgs e) { TreeNode node = this.tvRevisions.SelectedNode; if (node != null) { while (node.Parent != null) { node = node.Parent; } EditRev er = new EditRev(ref this.revSet, node.Index); er.ShowDialog(); Init(); } else { EditRev er = new EditRev(ref this.revSet, 0); er.ShowDialog(); Init(); } }
private void btnNewRev_Click(object sender, EventArgs e) { EditRev er = new EditRev(ref this.revSet, this.tvRevisions.Nodes.Count, cd, propertySet.GetProperty("REVISION LEVEL")); er.Added += er_Added; er.AddedLvl+= er_AddedLvl; er.new_rev = true; er.ShowDialog(); if (!IsDisposed) Init(); }