コード例 #1
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();
             }
         }
     }
 }
コード例 #2
0
ファイル: UCActionBox.cs プロジェクト: configare/hispeed
 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();
             }
         }
     }
 }