Exemplo n.º 1
0
 private void boxKelas_ItemClick(object sender, Syncfusion.Windows.Forms.Tools.XPTaskBarItemClickArgs e)
 {
     if (e.XPTaskBarItem.Name == "itemKelasReguler")
     {
         if (formKelasReguler == null || formKelasReguler.IsDisposed)
         {
             formKelasReguler           = new FormKelasReguler();
             formKelasReguler.MdiParent = this;
         }
         formKelasReguler.Show();
         tabbedMDIManager1.UpdateActiveTabHost(formKelasReguler);
     }
 }
        private void itemClick(object sender, Syncfusion.Windows.Forms.Tools.XPTaskBarItemClickArgs e)
        {
            Form form = null;

            if (e.XPTaskBarItem.Name == "itemSetJadwal")
            {
                if (formSetJadwalKuliah == null || formSetJadwalKuliah.IsDisposed)
                {
                    formSetJadwalKuliah           = new FormSetJadwalKuliah();
                    formSetJadwalKuliah.MdiParent = this;
                }
                form = formSetJadwalKuliah;
            }

            if (form != null && !form.IsDisposed)
            {
                form.Show();
                tabbedMDIManager1.UpdateActiveTabHost(form);
            }
        }
Exemplo n.º 3
0
        private void xpTaskBarBox1_ItemClick(object sender, Syncfusion.Windows.Forms.Tools.XPTaskBarItemClickArgs e)
        {
            Form frm;

            switch (e.XPTaskBarItem.Name)
            {
            case "XPTaskBarItem0":
                frm = new Form2
                {
                    MdiParent = this
                };
                frm.Show();
                break;

            case "XPTaskBarItem6":
                frm = new Form3
                {
                    MdiParent = this
                };
                frm.Show();
                break;
            }
        }