/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmTimHocSinh1_Load(object sender, EventArgs e) { //Khoi tao doi tuong m_DanTocController if (this.DanTocController == null) { this.DanTocController = new DanTocController(); } //Khoi tao doi tuong m_TonGiaoController if (this.TonGiaoController == null) { this.TonGiaoController = new TonGiaoController(); } //Khoi tao doi tuong m_NgheNghiepController if (this.NgheNghiepChaContorller == null) { this.NgheNghiepChaContorller = new NgheNghiepController(); } //Khoi tao doi tuong m_NgheNghiepController if (this.NgheNghiepMeController == null) { this.NgheNghiepMeController = new NgheNghiepController(); } this.DanTocController.HienThiDataGridComboBoxColumn(this.colDanToc); this.TonGiaoController.HienThiDataGridComboBoxColumn(this.colTonGiao); this.NgheNghiepChaContorller.HienThiDataGridComboBoxColumn(this.colNNghiepCha, "MaNNghiepCha"); this.NgheNghiepMeController.HienThiDataGridComboBoxColumn(this.colNNghiepMe, "MaNNghiepMe"); }
/// <summary> /// /// </summary> /// <returns></returns> public int PhatSinhMa() { int lastID = new NgheNghiepController().LayMaCuoi(); lastID++; return(lastID); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmNgheNghiep_Load(object sender, EventArgs e) { //Khoi tao doi tuong m_Controller if (this.Controller == null) { this.Controller = new NgheNghiepController(); } this.Controller.HienThiDS(dgvDS, bnDS); }
public frmNgheNghiep(NgheNghiepController nn) { InitializeComponent(); this.Controller = nn; }