private void toolStripButton2_Click(object sender, EventArgs e) { string pageTitle = (sender as ToolStripItem).Text; if (!cJiaTabControl1.isExistPage(pageTitle)) { UI.MergeView image = new UI.MergeView(); cJiaTabControl1.ShowPage(pageTitle, image); } }
private void toolStripButton2_Click(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { string pageTitle = e.Item.Caption; if (!cJiaTabControl1.isExistPage(pageTitle)) { UI.MergeView image = new UI.MergeView(); cJiaTabControl1.ShowPage(pageTitle, image); } }