예제 #1
0
 public AddToolStripPageCommand()
 {
     ExcuteHandler = () =>
     {
         using (ToolStripPageEditView view = new ToolStripPageEditView())
         {
             view.ShowDialog();
         }
     };
 }
예제 #2
0
        public EditToolStripPageCommand()
        {
            ExcuteHandler = () =>
            {
                ToolStripPageEntity entity = GetArgument();

                if (entity == null)
                {
                    return;
                }

                using (ToolStripPageEditView view = new ToolStripPageEditView())
                {
                    view.ToolStripPage = entity;
                    view.ShowDialog();
                }
            };
        }