Пример #1
0
 private void DoBinding(IAction action)
 {
     using (frmPropertyEditorDialog dlg = new frmPropertyEditorDialog())
     {
         IPropertyEditorDialog editor = dlg as IPropertyEditorDialog;
         dlg.ShowDialog(action, this as IBindingEnvironment);
     }
 }
Пример #2
0
 public static void Execute(IAction action)
 {
     using (frmPropertyEditorDialog frm = new frmPropertyEditorDialog())
     {
         IPropertyEditorDialog dlg = frm as IPropertyEditorDialog;
         bool isOk = dlg.ShowDialog(action, null);
         if (isOk)
         {
             using (frmActionExecutor exefrm = new frmActionExecutor())
             {
                 IActionExecutor exe = exefrm as IActionExecutor;
                 exe.Queue(action);
                 exefrm.ShowDialog();
             }
         }
     }
 }
Пример #3
0
 private void DirectExecute(ActionInfo actionInfo)
 {
     using (frmPropertyEditorDialog frm = new frmPropertyEditorDialog())
     {
         IPropertyEditorDialog dlg = frm as IPropertyEditorDialog;
         IAction action            = actionInfo.ToAction();
         bool    isOk = dlg.ShowDialog(action, null);
         if (isOk)
         {
             using (frmActionExecutor exefrm = new frmActionExecutor())
             {
                 IActionExecutor exe = exefrm as IActionExecutor;
                 exe.Queue(action);
                 exefrm.ShowDialog();
             }
         }
     }
 }