コード例 #1
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);
                }
            }
        }
コード例 #2
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);
            }
        }
コード例 #3
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_);
            }
        }
コード例 #4
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);
            }
        }
コード例 #5
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);
            }
        }
コード例 #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);
            }
        }
コード例 #7
0
        static void executedDisplSet(object sender, ExecutedRoutedEventArgs e)
        {
            ViewFrameworkElement view = sender as ViewFrameworkElement;

            if (view != null && view.MfcRootNamespace == "AS.UmlEditor")
            {
                view.OnCmdMsg((int)AS.UmlEditor.MfcCommand.BUTTON_DISPLAY_PROPERTIES);
            }
        }
コード例 #8
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);
            }
        }