Пример #1
0
        private void PopupDeleteUnusedAggsForm(MeasureGroup mg)
        {
            MeasureGroup cloneMG = null;

            if (mg != null)
            {
                cloneMG = this.cloneDB.Cubes[mg.Parent.ID].MeasureGroups[mg.ID];
            }
            AggManager.DeleteUnusedAggs form1 = new AggManager.DeleteUnusedAggs();
            form1.Init(mProjItem, cloneDB, cloneMG);
            if (form1.ShowDialog(this) == DialogResult.OK)
            {
                foreach (TreeNode node in form1.treeViewAggregation.Nodes)
                {
                    DeleteAggsAndRecurse(node);
                }
            }
        }
Пример #2
0
 private void PopupDeleteUnusedAggsForm(MeasureGroup mg)
 {
     MeasureGroup cloneMG = null;
     if (mg != null)
         cloneMG = this.cloneDB.Cubes[mg.Parent.ID].MeasureGroups[mg.ID];
     AggManager.DeleteUnusedAggs form1 = new AggManager.DeleteUnusedAggs();
     form1.Init(mProjItem, cloneDB, cloneMG);
     if (form1.ShowDialog(this) == DialogResult.OK)
     {
         foreach (TreeNode node in form1.treeViewAggregation.Nodes)
             DeleteAggsAndRecurse(node);
     }
 }