예제 #1
0
 /// <summary>
 /// Executes the command.
 /// Opens the Materials Dialog.
 /// </summary>
 /// <param name="services">CommandServices object to interact with the system</param>
 public override void Run(Canguro.Controller.CommandServices services)
 {
     Canguro.Commands.Forms.MaterialsGUI gui = new Canguro.Commands.Forms.MaterialsGUI();
     if (services.ShowDialog(gui) != DialogResult.OK)
     {
         throw new Canguro.Controller.CancelCommandException();
     }
 }
예제 #2
0
 /// <summary>
 /// Executes the command. 
 /// Opens the Materials Dialog.
 /// </summary>
 /// <param name="services">CommandServices object to interact with the system</param>
 public override void Run(Canguro.Controller.CommandServices services)
 {
     Canguro.Commands.Forms.MaterialsGUI gui = new Canguro.Commands.Forms.MaterialsGUI();
     if (services.ShowDialog(gui) != DialogResult.OK)
         throw new Canguro.Controller.CancelCommandException();
 }