private void TC1_TabPageClosing(object sender, TabPageCancelEventArgs e) { //throw new NotImplementedException(); //String xx = ""; //C1DockingTab tab = new C1DockingTab(); //tab = (C1DockingTab)sender; //xx = tab.Name; //C1DockingTabPage page = new C1DockingTabPage(); //page = tab.TabPages[0]; //page = tab.TabPages[1]; //if(page.) }
/// <summary> /// 选择项 /// </summary> /// <param name="e"></param> protected override void OnSelecting(TabPageCancelEventArgs e) { base.OnSelecting(e); /*if (this.SelectedTabPage != null) * { * if (this.SelectedTabPage.XtraTabType == "项目指引") * { * * } * else * { * if (this.SelectedTabPage.GetProjectForm.GetWorkArea != null) * { * string str = this.SelectedTabPage.GetProjectForm.GetWorkArea.Text; * this.SelectedTabPage.CTagObjects.SaveLayout(str); * } * } * }*/ }
private void OnTabPageSelecting(Object sender, TabPageCancelEventArgs e) { e.Cancel = true; }