Example #1
0
        private void tabControlGlobeBottom_TabItemClose(object sender, TabStripActionEventArgs e)
        {
            try
            {
                e.Cancel = true;

                DevComponents.DotNetBar.TabControl tabcontrol = sender as DevComponents.DotNetBar.TabControl;
                if (tabcontrol != null)
                {
                    tabcontrol.SelectedTab.Visible = false;

                    bool hasvisible = false;

                    for (int i = 0; i < tabcontrol.Tabs.Count; i++)
                    {
                        if (tabcontrol.Tabs[i].Visible)
                        {
                            hasvisible = true;
                            break;
                        }
                    }
                    expandableSplitter1.Expanded = hasvisible;
                }
            }
            catch (Exception ex)
            {
            }
        }
Example #2
0
        /// <summary>
        /// event khi click vào chọn skin
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        #region các sự kiện chỉnh form
        private void tabMain_TabItemClose(object sender, TabStripActionEventArgs e)
        {
            TabItem t = tabMain.SelectedTab;

            //if (t.Name == "frmCheckin")
            //    return;
            tabMain.Tabs.Remove(t);
        }
Example #3
0
        //sự kiện đóng tab
        private void tabControl1_TabItemClose_1(object sender, TabStripActionEventArgs e)
        {
            DialogResult dl = MessageBox.Show("Bạn có muốn đóng tab " + tabControl1.SelectedTab.Text + "", "Đóng", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dl == DialogResult.Yes)
            {
                tabControl1.Tabs.Remove(tabControl1.SelectedTab);
            }
        }
Example #4
0
		private void tabStrip1_TabItemClose(object sender, TabStripActionEventArgs e)
		{
			if (tabStrip1.SelectedTab != null)
			{
				RemoveTab(tabStrip1.SelectedTab);
				// The actual cancel is performed in RemoveTab(), so we need to
				// cancel this removal, otherwise unexpected behaviour occurs.
				e.Cancel = true;
			}
		}
Example #5
0
        void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e)
        {
            TabItem t = tabControl1.SelectedTab;

            tabControl1.Tabs.Remove(t);
            if (tabControl1.Controls.Count - 1 == 0)
            {
                panel1.Controls.Clear();
            }
        }
Example #6
0
 private void FTabs_TabItemClose(object sender, TabStripActionEventArgs e)
 {
     // do not allow to close the "Code" tab
     if (FTabs.SelectedTab.Tag == null)
     {
         e.Cancel = true;
     }
     else
     {
         Designer.cmdDeletePage.Invoke();
     }
 }
Example #7
0
        private void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e)
        {
            TabItem itemRemove = tabP.SelectedTab;

            tabP.Tabs.Remove(itemRemove);
            tabP.Controls.Remove(itemRemove.AttachedControl);
            tabP.RecalcLayout();
            if (tabP.Tabs.Count == 0)
            {
                this.Dispose();
            }
        }
Example #8
0
 private void tabContent_TabItemClose(object sender, TabStripActionEventArgs e)
 {
     this.tabContent.Tabs.Remove(this.tabContent.SelectedTab);
     tabContent.Refresh();
 }
Example #9
0
 private void tabs_TabItemClose(object sender, TabStripActionEventArgs e)
 {
     ((DevComponents.DotNetBar.TabControl)sender).SelectedTab.AttachedControl.Controls[0].Dispose();
 }
 private void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e)
 {
     close_this();
 }
Example #11
0
 // chuột phải đóng trang
 private void tabMain_TabItemClose(object sender, TabStripActionEventArgs e)
 {
     CloseThis();
 }
Example #12
0
 private void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e)
 {
     DeleteTab(FCurrentPreview);
     e.Cancel = true;
     tabControl.RecalcLayout();
 }
Example #13
0
        private void tabContent_TabItemClose(object sender, TabStripActionEventArgs e)
        {
            TabItem tab = tabContent.SelectedTab;

            tabContent.Tabs.Remove(tab);
        }
Example #14
0
 private void SuperTabControl_Main_TabItemClose(object sender, TabStripActionEventArgs e)
 {
     e.Cancel          = true;
     e.TabItem.Visible = false;
 }
Example #15
0
        private void DongTap(object sender, TabStripActionEventArgs e)
        {
            TabItem chontab = tabControl1.SelectedTab;

            tabControl1.Tabs.Remove(chontab);
        }
Example #16
0
 private void TabHeThong_TabItemClose(object sender, TabStripActionEventArgs e)
 {
     DongTab();
 }
Example #17
0
        private void tabMain_TabItemClose(object sender, TabStripActionEventArgs e)
        {
            TabItem tb = tabMain.SelectedTab;

            tabMain.Tabs.Remove(tb);
        }
Example #18
0
 /// <summary>
 /// 关闭绘图
 /// </summary>
 /// <param name="sender">事件发送者</param>
 /// <param name="e">事件</param>
 private void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e)
 {
     documentManager.CheckAndSaveFlowChart();
 }