示例#1
0
        private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int index = tabControl1.TabPages.IndexOfKey("tabpagedatmon");

            if (index > 0)
            {
                tabControl1.SelectedIndex = index;
            }
            else
            {
                Formdatmon a = new Formdatmon();
                TabPage    p = new TabPage(a.Text);
                p.Name     = "tabpagedatmon";
                a.TopLevel = false;
                p.Controls.Add(a);
                a.Dock            = DockStyle.Fill;
                a.FormBorderStyle = FormBorderStyle.None;
                tabControl1.TabPages.Add(p);
                a.Show();
            }

            //Formdatmon datmon = new Formdatmon();
            //datmon.WindowState = FormWindowState.Normal;
            //datmon.Show();
        }
示例#2
0
 private void loadtbxmahadon()
 {
     Formdatmon e = new Formdatmon(hd);
    
     tbxmahoadon.Text = hd;
 }