Пример #1
0
        void AddSelectionCriteria()
        {
            dataFilteringControl             = new DataFilteringControl(dashboardHelper);
            dataFilteringControl.MouseEnter += new MouseEventHandler(selectionCriteriaControl_MouseEnter);
            dataFilteringControl.MouseLeave += new MouseEventHandler(selectionCriteriaControl_MouseLeave);
            dataFilteringControl.SelectionCriteriaChanged += new EventHandler(selectionCriteriaControl_SelectionCriteriaChanged);
            dataFilteringControl.Loaded += new RoutedEventHandler(dataFilteringControl_Loaded);
            grdMain.Children.Add(dataFilteringControl);

            DragCanvas.SetCanBeDragged(dataFilteringControl, false);
        }
Пример #2
0
        void AddFormatOptions()
        {
            dataRecodingControl                      = new DataRecodingControl(dashboardHelper);
            dataRecodingControl.MouseEnter          += new MouseEventHandler(dataRecodingControl_MouseEnter);
            dataRecodingControl.MouseLeave          += new MouseEventHandler(dataRecodingControl_MouseLeave);
            dataRecodingControl.UserVariableChanged += new EventHandler(dataRecodingControl_RecodingRulesChanged);
            dataRecodingControl.Loaded              += new RoutedEventHandler(dataRecodingControl_Loaded);
            grdMain.Children.Add(dataRecodingControl);

            DragCanvas.SetCanBeDragged(dataRecodingControl, false);
        }