private void CreateESRICommand() { ICommand command = new ControlsMapDownCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsMapRefreshViewCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsMapLeftCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsMapRightCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsMapUpCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsMapRotateToolClass(); this.m_esriCommandList.Add(command); command = new ControlsPagePanToolClass(); this.m_esriCommandList.Add(command); command = new ControlsPageZoom100PercentCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsPageZoomInFixedCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsPageZoomInToolClass(); this.m_esriCommandList.Add(command); command = new ControlsPageZoomOutFixedCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsPageZoomOutToolClass(); this.m_esriCommandList.Add(command); command = new ControlsPageZoomPageToLastExtentBackCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsPageZoomPageToLastExtentForwardCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsPageZoomPageWidthCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsPageZoomWholePageCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsRotateElementToolClass(); this.m_esriCommandList.Add(command); command = new ControlsRotateLeftCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsRotateRightCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsSelectToolClass(); this.m_esriCommandList.Add(command); command = new ControlsSendBackwardCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsSendToBackCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsGroupCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsUngroupCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsMapClearMapRotationCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsBringForwardCommandClass(); this.m_esriCommandList.Add(command); command = new ControlsBringToFrontCommandClass(); this.m_esriCommandList.Add(command); }
private void toolStripButton6_Click(object sender, EventArgs e) { ICommand pCommand = new ControlsGroupCommandClass(); pCommand.OnCreate(this.mainMapControl.Object); pCommand.OnClick(); }