Ejemplo n.º 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);
                }
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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_);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }
        }