示例#1
0
 /// <summary>
 /// Performs the action for the "Plan To N" and "Remove" menu options.
 /// </summary>
 /// <param name="operation"></param>
 /// <returns></returns>
 public static bool Perform(Form parentForm, IPlanOperation operation)
 {
     using (var window = new PlanToOperationForm(operation))
     {
         var result = window.ShowDialog(parentForm);
         return(result == DialogResult.OK);
     }
 }
示例#2
0
 /// <summary>
 /// Performs the action for the "Plan To N" and "Remove" menu options.
 /// </summary>
 /// <param name="operation"></param>
 /// <returns></returns>
 public static bool Perform(Form parentForm, IPlanOperation operation)
 {
     using (var window = new PlanToOperationForm(operation))
     {
         var result = window.ShowDialog(parentForm);
         return result == DialogResult.OK;
     }
 }