Beispiel #1
0
        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);
                }
            }
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
        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);
            }
        }
Beispiel #5
0
        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);
            }
        }
Beispiel #6
0
        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);
            }
        }
Beispiel #7
0
        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);
            }
        }
Beispiel #8
0
        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);
            }
        }