| | |
| | | this.Text = System.Configuration.ConfigurationSettings.AppSettings.Get("ProductName").ToString(); |
| | | tab.CloseButtonClick += Tab_CloseButtonClick; |
| | | getTree(); |
| | | tooLoading.Click += TooLoading_Click; |
| | | } |
| | | |
| | | private void TooLoading_Click(object sender, EventArgs e) |
| | | { |
| | | int i = 100; |
| | | Gs.DevApp.UserControl.ShowDialogForm sdf = new Gs.DevApp.UserControl.ShowDialogForm("提示", "", "请耐心等候,正在操作中!"); |
| | | for (int j = 0; j < i; j++) { |
| | | sdf.SetCaption("执行进度(" + (j) + "/" +i.ToString() + ")"); |
| | | } |
| | | sdf.Close(); |
| | | } |
| | | |
| | | private void Tab_CloseButtonClick(object sender, EventArgs e) |
| | |
| | | _itm.Click += _grp_Click; |
| | | _grp.Elements.Add(_itm); |
| | | // |
| | | if (idx == 0) { |
| | | if (idx == 0) |
| | | { |
| | | string tabPageName = _itm.Name + "_page"; |
| | | string tabText = _itm.Text;//当前选项卡页Text标题 |
| | | string newFormName = _itm.Tag.ToString();//存路径,类名 |
| | |
| | | /// <param name="e"></param> |
| | | public void RemoveTabPage(XtraTabControl tabControl, EventArgs e) |
| | | { |
| | | if (TabPageDic.Count <= 1) |
| | | { |
| | | ToolBox.MsgHelper.Warning("请至少保留一个功能!"); |
| | | return; |
| | | } |
| | | DevExpress.XtraTab.ViewInfo.ClosePageButtonEventArgs args = (DevExpress.XtraTab.ViewInfo.ClosePageButtonEventArgs)e; |
| | | string name = args.Page.Tooltip; |
| | | foreach (XtraTabPage item in tabControl.TabPages) |