Exemple #1
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     bool flag = !GlobalVariable.LaQuanTriHeThong;
     if (flag)
     {
         this.mnQuanLyTaiKhoan.Visible = false;
         this.mnThietLapThongSoFTP.Visible = false;
     }
     GlobalVariable.TinhId = 79;
     GlobalVariable.MaTinh = "79";
     GlobalVariable.TenTinh = "TP. Hồ Chí Minh";
     GlobalVariable.HuyenId = 769;
     GlobalVariable.MaHuyen = "769";
     GlobalVariable.TenHuyen = "Quận 2";
     this.frmThongTinHoSo = new FormThongTinHoSo();
     this.frmThongTinHoSo.Show(this.dockPanel, DockState.Document);
     this.toolStripXa.DropDownItems.Clear();
     EntityCollection entityCollection = ManageBase.SelectXaByHuyenId(GlobalVariable.HuyenId);
     foreach (XaEntity xaEntity in entityCollection)
     {
         ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem(xaEntity.TenXa);
         toolStripMenuItem.Tag = xaEntity.XaId;
         toolStripMenuItem.Click += new EventHandler(this.menuItemCommune_Click);
         this.toolStripXa.DropDownItems.Add(toolStripMenuItem);
     }
     this.toolStripXa.Text = this.toolStripXa.DropDownItems[0].Text;
     this.menuItemCommune_Click(this.toolStripXa.DropDownItems[0], null);
 }