public EditToolStripGroupCommand() { ExcuteHandler = () => { ToolStripGroupEntity entity = GetArgument(); if (entity == null) { return; } using (ToolStripGroupEditView view = new ToolStripGroupEditView(entity.PageId)) { view.ToolStripGroup = entity; view.ShowDialog(); } }; }
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(); } }; }