static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new frmMain()); login = new frmLogin(); main = new frmMain(); frmphieudat = new frmPhieuDat(); frmquanly = new frmQuanLy(); Application.Run(new frmLoading()); //Application.Run(new frmChuyenHang()); }
private async void btnQuanLy_Click(object sender, EventArgs e) { frmQuanLy f = new frmQuanLy(); ftk.Close(); ftk = new frmTimThongtin(); this.Hide(); f.ShowDialog(); this.Show(); ftk.Show(); Program.lstHang = await new HangBAL().LayLst(); bsHang.DataSource = Program.lstHang.Where(p => p.SoLuong <= 5); }