Ejemplo n.º 1
0
 private void DoColMeasureClickProcess(object parm)
 {
     if (SelectedMeasure != null)
     {
         // Check for the existence of this item in the current report
         // and add it to the current report
         if (!CheckForExistance(SelectedMeasure))
         {
             ColumnItems.Add(SelectedMeasure);
             addToReport(AxisType.Categorical, SelectedMeasure);
             canColShowMeasureBtn    = true;
             canRowShowMeasureBtn    = false;
             canSlicerShowMeasureBtn = false;
             ColMeasureClick.CanExecute(null);
             RowMeasureClick.CanExecute(null);
             SlicerMeasureClick.CanExecute(null);
             GridDataManager.NotifyElementModified();
         }
         else
         {
             MessageBox.Show("This element is already exist in the current report", "Cube Browser", MessageBoxButton.OK, MessageBoxImage.Information);
         }
     }
     else
     {
         MessageBox.Show("Select a Measure to Add", "Cube Browser", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }
Ejemplo n.º 2
0
 private void DoDimensionClickProcess(object parm)
 {
     if (SelectedDimension != null)
     {
         // Check the existence of the selected dimension in the current report
         // and add it to the current report
         if (!CheckForExistance(SelectedDimension))
         {
             if (parm.ToString().Equals("btnColDimension"))
             {
                 ColumnItems.Add(SelectedDimension);
                 addToReport(AxisType.Categorical, SelectedDimension);
             }
             else if (parm.ToString().Equals("btnRowDimension"))
             {
                 RowItems.Add(SelectedDimension);
                 addToReport(AxisType.Series, SelectedDimension);
             }
             else if (parm.ToString().Equals("btnSliceDimension"))
             {
                 SlicerItems.Add(SelectedDimension);
                 addToReport(AxisType.Slicer, SelectedDimension);
             }
             SelectedDimension = null;
             canShowDimButton  = false;
             DimensionClick.CanExecute(null);
             GridDataManager.NotifyElementModified();
         }
         else
         {
             MessageBox.Show("This element is already exist in the current report", "Cube Browser", MessageBoxButton.OK, MessageBoxImage.Information);
         }
     }
     else
     {
         MessageBox.Show("Select a Dimension to Add", "Cube Browser", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }