//新建文档 private void barBtnItemNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ICommand command = new CreateNewDocument(); command.OnCreate(m_mapControl.Object); command.OnClick(); }
private void menuNewDoc_Click(object sender, EventArgs e) { //execute New Document command ICommand command = new CreateNewDocument(); command.OnCreate(m_mapControl.Object); command.OnClick(); }