Canguro.Commands.Model.SectionsCmd.Run C# (CSharp) 메소드

Run() 공개 메소드

Executes the command. Opens the Sections Dialog
public Run ( Canguro services ) : void
services Canguro CommandServices object to interact with the system
리턴 void
        public override void Run(Canguro.Controller.CommandServices services)
        {
            SectionsGUI gui = new SectionsGUI();
            if (services.ShowDialog(gui) == System.Windows.Forms.DialogResult.Cancel)
                throw new Canguro.Controller.CancelCommandException();

            services.Model.ChangeModel(true);
        }
SectionsCmd