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); } } }
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); } }
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_); } }
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); } }
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); } }
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); } }
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); } }
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); } }