static void canExecuteCopy(object sender, CanExecuteRoutedEventArgs e) { ViewFrameworkElement view = sender as ViewFrameworkElement; if (view != null) { if (view.MfcRootNamespace == "AS.UmlEditor") { view.OnUpdateCmdMsg((int)AS.UmlEditor.MfcCommand.EDIT_COPY, e); } else { view.OnUpdateCmdMsg((int)AS.DlgEditor.MfcCommand.EDIT_COPY, e); } } }
static void canExecuteZoomout(object sender, CanExecuteRoutedEventArgs e) { ViewFrameworkElement view = sender as ViewFrameworkElement; if (view != null && view.MfcRootNamespace == "AS.DlgEditor") { view.OnUpdateCmdMsg((int)AS.DlgEditor.MfcCommand.ZOOM_OUT_, e); } }
static void canExecuteSnaptogrid(object sender, CanExecuteRoutedEventArgs e) { ViewFrameworkElement view = sender as ViewFrameworkElement; if (view != null && view.MfcRootNamespace == "AS.DlgEditor") { view.OnUpdateCmdMsg((int)AS.DlgEditor.MfcCommand.SNAP_TO_GRID, e); } }
static void canExecuteMultidraw(object sender, CanExecuteRoutedEventArgs e) { ViewFrameworkElement view = sender as ViewFrameworkElement; if (view != null && view.MfcRootNamespace == "AS.DlgEditor") { view.OnUpdateCmdMsg((int)AS.DlgEditor.MfcCommand.BUTTON_MULTIDRAW, e); } }
static void canExecuteRadiobutton(object sender, CanExecuteRoutedEventArgs e) { ViewFrameworkElement view = sender as ViewFrameworkElement; if (view != null && view.MfcRootNamespace == "AS.DlgEditor") { view.OnUpdateCmdMsg((int)AS.DlgEditor.MfcCommand.ADD_RADIOBUTTON, e); } }
static void canExecuteGroupbox(object sender, CanExecuteRoutedEventArgs e) { ViewFrameworkElement view = sender as ViewFrameworkElement; if (view != null && view.MfcRootNamespace == "AS.DlgEditor") { view.OnUpdateCmdMsg((int)AS.DlgEditor.MfcCommand.ADD_GROUPBOX, e); } }
static void canExecuteDisplSet(object sender, CanExecuteRoutedEventArgs e) { ViewFrameworkElement view = sender as ViewFrameworkElement; if (view != null && view.MfcRootNamespace == "AS.UmlEditor") { view.OnUpdateCmdMsg((int)AS.UmlEditor.MfcCommand.BUTTON_DISPLAY_PROPERTIES, e); } }
static void canExecuteLabel(object sender, CanExecuteRoutedEventArgs e) { ViewFrameworkElement view = sender as ViewFrameworkElement; if (view != null && view.MfcRootNamespace == "AS.UmlEditor") { view.OnUpdateCmdMsg((int)AS.UmlEditor.MfcCommand.BUTTON_LABEL, e); } }