示例#1
0
        private void btnImport_ItemClick(object sender, ItemClickEventArgs e)
        {
            string typeName = e.Item.Tag == null ? string.Empty : e.Item.Tag.ToString();
            Form   f        = GetMdiFormByName(typeName);

            if (f != null)
            {
                f.BringToFront();
            }
            else
            {
                SplashScreenManager.ShowForm(typeof(WaitFormMain));
                f           = new FrmImportChamCong();
                f.Name      = f.GetType().ToString();
                e.Item.Tag  = f.Name;
                f.MdiParent = this;
                f.Show();
                SplashScreenManager.CloseForm();
            }
        }
示例#2
0
        private void btnImport_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form f = new FrmImportChamCong();

            f.ShowDialog();
        }