private void InitForm()
        {
            #region Data
            // BLL
            _business              = new ES_SoanCauHoiBLL();
            _business              = new ES_SoanCauHoiBLL();
            _lstTablePanelCauHoi   = new List <TableLayoutPanel>();
            _lstTablePanelGayNhieu = new List <TableLayoutPanel>();
            ListIdCauHoiBiXoa      = new List <long>();
            ListIdCauTraLoiBiXoa   = new List <long>();
            ListCauHoi             = new List <EX_CauHoi>();
            _parsing = new Parsing(null, null);

            #endregion

            #region Control

            Dock = DockStyle.Fill;
            btnDienKhuyet.Text   = "Điền khuyết";
            btnThemGayNhieu.Text = "";

            #endregion

            CauHoiLoad();

            #region Event

            txtCtrlNoiDungCauHoi.GotFocus += TxtCtrlNoiDungCauHoi_GotFocus;
            btnDienKhuyet.Click           += BtnDienKhuyet_Click;
            btnThemGayNhieu.Click         += BtnThemGayNhieu_Click;
            cboCauHoi.EditValueChanged    += CboCauHoi_EditValueChanged;
            #endregion
        }
        private void InitForm()
        {
            #region Data

            _business           = new ES_SoanCauHoiBLL();
            _lstTablePanelDapAn = new List <TableLayoutPanel>();
            ListIdCauHoiBiXoa   = new List <long>();

            #endregion

            #region Control

            this.Dock = DockStyle.Fill;
            txtCtrlNoiDungCauHoi.EnableAutoDragDrop = false;

            #endregion

            #region Event

            txtCtrlNoiDungCauHoi.GotFocus         += txtCtrlNoiDungCauHoi_GotFocus;
            txtCtrlNoiDungCauHoi.KeyDown          += txtCtrlNoiDungCauHoi_KeyDown;
            txtCtrlNoiDungCauHoi.SelectionChanged += txtCtrlNoiDungCauHoi_SelectionChanged;
            txtCtrlNoiDungCauHoi.TextChanged      += txtCtrlNoiDungCauHoi_TextChanged;
            //Comment
            //ucToolstript1.OnUnderLineClick += UcToolstript1_OnUnderLineClick;

            #endregion
        }
 private void InitializeData()
 {
     //BLL
     _bus = new ES_SoanCauHoiBLL();
     _lstTablePanelDapAn = new List <TableLayoutPanel>();
     ListIdCauHoiBiXoa   = new List <long>();
     ListCauHoi          = new List <EX_CauHoi>();
 }
        private void InitForm()
        {
            #region Data
            _business           = new ES_SoanCauHoiBLL();
            _lstTablePanelDapAn = new List <TableLayoutPanel>();
            ListIdCauHoiBiXoa   = new List <long>();

            #endregion

            this.Dock = DockStyle.Fill;
            CauHoiLoad();

            #region Event

            btnThemCauTraLoi.Click        += BtnThemCauTraLoi_Click;
            txtCtrlNoiDungCauHoi.GotFocus += TxtCtrlNoiDungCauHoi_GotFocus;

            #endregion
        }
Beispiel #5
0
        private void InitForm()
        {
            #region Data
            _business = new ES_SoanCauHoiBLL();
            _lstTablePanelDapAnTrai = new List <TableLayoutPanel>();
            _lstTablePanelDapAnPhai = new List <TableLayoutPanel>();
            ListIdCauHoiBiXoa       = new List <long>();

            #endregion

            #region Control

            Dock = DockStyle.Fill;
            #endregion

            #region Event
            btnThemBenTrai.Click          += BtnThemBenTrai_Click;
            btnThemBenPhai.Click          += BtnThemBenPhai_Click;
            txtCtrlNoiDungCauHoi.GotFocus += txtCtrlNoiDungCauHoi_GotFocus;
            #endregion
        }
 private void InitializeData()
 {
     _business = new ES_SoanCauHoiBLL();
 }