Beispiel #1
0
 private void DoSlicerMeasureClickProcess(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) && !SlicerItems.Any(i => i is Measure))
         {
             SlicerItems.Add(SelectedMeasure);
             addToReport(AxisType.Slicer, SelectedMeasure);
             canColShowMeasureBtn    = false;
             canRowShowMeasureBtn    = false;
             canSlicerShowMeasureBtn = true;
             ColMeasureClick.CanExecute(null);
             RowMeasureClick.CanExecute(null);
             SlicerMeasureClick.CanExecute(null);
             GridDataManager.NotifyElementModified();
         }
         else
         {
             MessageBox.Show("This element is already exist in the current report or more than one measure could not be sliced.", "Cube Browser", MessageBoxButton.OK, MessageBoxImage.Information);
         }
     }
     else
     {
         MessageBox.Show("Select a Measure to Add", "Cube Browser", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }
Beispiel #2
0
 private void EnableAll()
 {
     if (!CheckForMeasure())
     {
         canColShowMeasureBtn    = true;
         canRowShowMeasureBtn    = true;
         canSlicerShowMeasureBtn = true;
         ColMeasureClick.CanExecute(null);
         RowMeasureClick.CanExecute(null);
         SlicerMeasureClick.CanExecute(null);
     }
 }