Beispiel #1
0
        static void canExecuteZoomin(object sender, CanExecuteRoutedEventArgs e)
        {
            ViewFrameworkElement view = sender as ViewFrameworkElement;

            if (view != null && view.MfcRootNamespace == "AS.DlgEditor")
            {
                view.OnUpdateCmdMsg((int)AS.DlgEditor.MfcCommand.ZOOM_IN_, e);
            }
        }
Beispiel #2
0
        static void executedZoomout(object sender, ExecutedRoutedEventArgs e)
        {
            ViewFrameworkElement view = sender as ViewFrameworkElement;

            if (view != null && view.MfcRootNamespace == "AS.DlgEditor")
            {
                view.OnCmdMsg((int)AS.DlgEditor.MfcCommand.ZOOM_OUT_);
            }
        }
Beispiel #3
0
        static void executedRadiobutton(object sender, ExecutedRoutedEventArgs e)
        {
            ViewFrameworkElement view = sender as ViewFrameworkElement;

            if (view != null && view.MfcRootNamespace == "AS.DlgEditor")
            {
                view.OnCmdMsg((int)AS.DlgEditor.MfcCommand.ADD_RADIOBUTTON);
            }
        }
Beispiel #4
0
        static void executedSnaptogrid(object sender, ExecutedRoutedEventArgs e)
        {
            ViewFrameworkElement view = sender as ViewFrameworkElement;

            if (view != null && view.MfcRootNamespace == "AS.DlgEditor")
            {
                view.OnCmdMsg((int)AS.DlgEditor.MfcCommand.SNAP_TO_GRID);
            }
        }
Beispiel #5
0
        static void executedMultidraw(object sender, ExecutedRoutedEventArgs e)
        {
            ViewFrameworkElement view = sender as ViewFrameworkElement;

            if (view != null && view.MfcRootNamespace == "AS.DlgEditor")
            {
                view.OnCmdMsg((int)AS.DlgEditor.MfcCommand.BUTTON_MULTIDRAW);
            }
        }
Beispiel #6
0
        static void executedListbox(object sender, ExecutedRoutedEventArgs e)
        {
            ViewFrameworkElement view = sender as ViewFrameworkElement;

            if (view != null && view.MfcRootNamespace == "AS.DlgEditor")
            {
                view.OnCmdMsg((int)AS.DlgEditor.MfcCommand.ADD_LISTBOX);
            }
        }
Beispiel #7
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 #8
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 #9
0
        static void executedLink(object sender, ExecutedRoutedEventArgs e)
        {
            ViewFrameworkElement view = sender as ViewFrameworkElement;

            if (view != null && view.MfcRootNamespace == "AS.UmlEditor")
            {
                view.OnCmdMsg((int)AS.UmlEditor.MfcCommand.BUTTON_LINK);
            }
        }
Beispiel #10
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);
            }
        }
Beispiel #11
0
        static void executedPaste(object sender, ExecutedRoutedEventArgs e)
        {
            ViewFrameworkElement view = sender as ViewFrameworkElement;

            if (view != null)
            {
                if (view.MfcRootNamespace == "AS.UmlEditor")
                {
                    view.OnCmdMsg((int)AS.UmlEditor.MfcCommand.EDIT_PASTE);
                }
                else
                {
                    view.OnCmdMsg((int)AS.DlgEditor.MfcCommand.EDIT_PASTE);
                }
            }
        }
Beispiel #12
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);
                }
            }
        }