private void cmdEditAggDes_Click(object sender, EventArgs e) { try { AggManager.EditAggs form1 = new AggManager.EditAggs(); TreeNode node; node = treeView1.SelectedNode; FillCollections((MeasureGroup)node.Parent.Parent.Tag); form1.Init(node.Name, (MeasureGroup)node.Parent.Parent.Tag, dimAttributes, dimNames, dimIDs); if (form1.ShowDialog(this) != DialogResult.OK) { return; } UpdateAggCountInListBox(treeView1.SelectedNode); if (!treeView1.SelectedNode.Parent.Parent.Text.EndsWith(MODIFIED_SUFFIX)) { treeView1.SelectedNode.Parent.Parent.Text = treeView1.SelectedNode.Parent.Parent.Text + MODIFIED_SUFFIX; } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void cmdEditAggDes_Click(object sender, EventArgs e) { try { AggManager.EditAggs form1 = new AggManager.EditAggs(); TreeNode node; node = treeView1.SelectedNode; FillCollections((MeasureGroup)node.Parent.Parent.Tag); form1.Init(node.Name, (MeasureGroup)node.Parent.Parent.Tag, dimAttributes, dimNames, dimIDs); if (form1.ShowDialog(this) != DialogResult.OK) return; UpdateAggCountInListBox(treeView1.SelectedNode); if (!treeView1.SelectedNode.Parent.Parent.Text.EndsWith(MODIFIED_SUFFIX)) treeView1.SelectedNode.Parent.Parent.Text = treeView1.SelectedNode.Parent.Parent.Text + MODIFIED_SUFFIX; } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }