コード例 #1
0
 public BanScreen(QuanLi f, string connectsql)
 {
     InitializeComponent();
     this.f          = f;
     this.connectsql = connectsql;
     Loads();
     binding();
     this.Refresh();
 }
コード例 #2
0
 public Main(Login f, String connectsql, String checkban, String userid, String vaiTro, String name)
 {
     InitializeComponent();
     this.connectsql = connectsql;
     this.checkban   = checkban;
     this.userid     = userid;
     this.vaiTro     = vaiTro;
     this.name       = name;
     this.f          = f;
     dangtin         = new DangTin(this, connectsql, name);
     missionScreen   = new MissionScreen(this, connectsql, userid);
     quanli          = new QuanLi(this, connectsql);
     checkTin        = new CheckTin(this, connectsql);
     phanCong        = new PhanCong(this, connectsql);
     doiMatKhau      = new DoiMatKhau(this, connectsql, userid);
     dKTT            = new DKTT(this, connectsql);
     check();
     checkMission();
     checkVaitro();
     cmbQuan.DropDownStyle  = ComboBoxStyle.DropDownList;
     txtCount.ReadOnly      = true;
     txtViecChuaGQ.ReadOnly = true;
 }