private void pageLayoutNavigationBtn_Click(object sender, EventArgs e) //布局地图导航条:Click { CurrentTool = ((SimpleButton)sender).Text.GetEnum <EPageTools>(); ICommand command = CmdCreator.CreateCommand(CurrentTool); if (command != null) { command.OnCreate(PageLayoutControl.Object); if (command is ITool tool) { PageLayoutControl.CurrentTool = tool; } else { command.OnClick(); } } }
public void RegisterCmdCreator(CmdCreator c) { _cmdCreators.Add(c); }