예제 #1
0
        private void EditAggregations()
        {
            Cube        cube = (Cube)this.ApplicationObject.ActiveWindow.ProjectItem.Object;
            ProjectItem pi   = ApplicationObject.ActiveWindow.ProjectItem;

            AggManager.MainForm frm = new AggManager.MainForm(cube, pi);
            frm.ShowDialog(); //show as a modal dialog so there's no way to continue editing the cube with the normal designer until you're done with the agg manager
        }
예제 #2
0
        public override void Exec()
        {
            try
            {
                UIHierarchy     solExplorer = this.ApplicationObject.ToolWindows.SolutionExplorer;
                UIHierarchyItem hierItem    = (UIHierarchyItem)((System.Array)solExplorer.SelectedItems).GetValue(0);
                ProjectItem     projItem    = (ProjectItem)hierItem.Object;
                Cube            cub         = (Cube)projItem.Object;

                AggManager.MainForm frm = new AggManager.MainForm(cub, projItem);
                frm.ShowDialog(); //show as a modal dialog so there's no way to continue editing the cube with the normal designer until you're done with the agg manager
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        public override void Exec()
        {
            try
            {
                UIHierarchy solExplorer = this.ApplicationObject.ToolWindows.SolutionExplorer;
                UIHierarchyItem hierItem = (UIHierarchyItem)((System.Array)solExplorer.SelectedItems).GetValue(0);
                ProjectItem projItem = (ProjectItem)hierItem.Object;
                Cube cub = (Cube)projItem.Object;

                AggManager.MainForm frm = new AggManager.MainForm(cub, projItem);
                frm.ShowDialog(); //show as a modal dialog so there's no way to continue editing the cube with the normal designer until you're done with the agg manager
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        private void EditAggregations()
        {
            Cube cube = (Cube)this.ApplicationObject.ActiveWindow.ProjectItem.Object;
            ProjectItem pi = ApplicationObject.ActiveWindow.ProjectItem;

            AggManager.MainForm frm = new AggManager.MainForm(cube, pi);
            frm.ShowDialog(); //show as a modal dialog so there's no way to continue editing the cube with the normal designer until you're done with the agg manager
        }