예제 #1
0
        private void mnuAddNewAction_Click(object sender, RoutedEventArgs e)
        {
            frmAddAction view = new frmAddAction(ProcessID, 0);

            view.ItemSaved += View_ItemSaved1;
            MyProjectManager.GetMyProjectManager().ShowDialog(view, "Form", Enum_WindowSize.Big);
        }
예제 #2
0
        private void mnuEditAction_Click(object sender, RoutedEventArgs e)
        {
            var menuItem    = sender as RadMenuItem;
            var contextMenu = menuItem.Parent as RadContextMenu;
            var source      = contextMenu.GetClickedElement <GridViewRow>();

            if (contextMenu != null && source != null)
            {
                frmAddAction view = new frmAddAction(ProcessID, (source.DataContext as WFActionDTO).ID);
                view.ItemSaved += View_ItemSaved1;
                MyProjectManager.GetMyProjectManager().ShowDialog(view, "Form", Enum_WindowSize.Big);
            }
        }