Beispiel #1
0
        public EditToolStripGroupCommand()
        {
            ExcuteHandler = () =>
            {
                ToolStripGroupEntity entity = GetArgument();

                if (entity == null)
                {
                    return;
                }

                using (ToolStripGroupEditView view = new ToolStripGroupEditView(entity.PageId))
                {
                    view.ToolStripGroup = entity;
                    view.ShowDialog();
                }
            };
        }
Beispiel #2
0
        public AddToolStripGroupCommand()
        {
            ExcuteHandler = () =>
            {
                string pageId = GetArgument();

                Debug.Assert(String.IsNullOrEmpty(pageId) == false, "pageId 为空");

                if (String.IsNullOrEmpty(pageId))
                {
                    return;
                }

                using (ToolStripGroupEditView view = new ToolStripGroupEditView(pageId))
                {
                    view.ShowDialog();
                }
            };
        }