コード例 #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);
                }
            }
        }
コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #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);
            }
        }