Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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;
     }
 }