private void toolStripButtonAddControllerInfoInfo_Click(object sender, EventArgs e)
        {
            modelControllerInfo.ControllerID = bllControllerInfo.GetMaxId();

            FormController formController = new FormController(modelControllerInfo, OpenMode.Add);

            formController.ShowDialog();

            refreshDataGridView();
        }
        /*
         * public  void updateGridViewWithCheckBoxRow(object sender, DataGridViewCellEventArgs e)
         * {
         *  if (kryptonDataGridView1.Rows.Count <= 0)
         *      return;
         *  AccessDataBase.BLL.ControllerInfo bllControllerInfo = new AccessDataBase.BLL.ControllerInfo();
         *  int selectIndex = kryptonDataGridView1.CurrentRow.Index;
         *
         *  string controllerID = kryptonDataGridView1["ControllerID", selectIndex].Value.ToString().Trim();
         *
         *  AccessDataBase.Model.ControllerInfo modelControllerInfo = bllControllerInfo.GetModel(int.Parse(controllerID));
         *  FormController formController = new FormController(modelControllerInfo, OpenMode.Update);
         *  formController.ShowDialog();
         *
         *  this.refreshDataGridView();
         * }*/
        private void toolStripButtonUpdateUserInfo_Click(object sender, EventArgs e)
        {
            if (kryptonDataGridView1.CurrentRow == null)
            {
                return;
            }

            AccessDataBase.BLL.ControllerInfo bllControllerInfo = new AccessDataBase.BLL.ControllerInfo();
            int selectIndex = kryptonDataGridView1.CurrentRow.Index;

            string controllerID = kryptonDataGridView1["ControllerID", selectIndex].Value.ToString().Trim();

            AccessDataBase.Model.ControllerInfo modelControllerInfo = bllControllerInfo.GetModel(int.Parse(controllerID));
            FormController formController = new FormController(modelControllerInfo, OpenMode.Update);

            formController.ShowDialog();

            refreshDataGridView();
        }
        /*
        public  void updateGridViewWithCheckBoxRow(object sender, DataGridViewCellEventArgs e)
        {
            if (kryptonDataGridView1.Rows.Count <= 0)
                return;
            AccessDataBase.BLL.ControllerInfo bllControllerInfo = new AccessDataBase.BLL.ControllerInfo();
            int selectIndex = kryptonDataGridView1.CurrentRow.Index;

            string controllerID = kryptonDataGridView1["ControllerID", selectIndex].Value.ToString().Trim();

            AccessDataBase.Model.ControllerInfo modelControllerInfo = bllControllerInfo.GetModel(int.Parse(controllerID));
            FormController formController = new FormController(modelControllerInfo, OpenMode.Update);
            formController.ShowDialog();

            this.refreshDataGridView();
        }*/
        private void toolStripButtonUpdateUserInfo_Click(object sender, EventArgs e)
        {
            if (kryptonDataGridView1.CurrentRow == null)
                return;

            AccessDataBase.BLL.ControllerInfo bllControllerInfo = new AccessDataBase.BLL.ControllerInfo();
            int selectIndex = kryptonDataGridView1.CurrentRow.Index;

            string controllerID = kryptonDataGridView1["ControllerID", selectIndex].Value.ToString().Trim();

            AccessDataBase.Model.ControllerInfo modelControllerInfo = bllControllerInfo.GetModel(int.Parse(controllerID));
            FormController formController = new FormController(modelControllerInfo,OpenMode.Update);
            formController.ShowDialog();

            refreshDataGridView();
        }
        private void toolStripButtonAddControllerInfoInfo_Click(object sender, EventArgs e)
        {
            modelControllerInfo.ControllerID = bllControllerInfo.GetMaxId();

            FormController formController = new FormController(modelControllerInfo, OpenMode.Add);
            formController.ShowDialog();

            refreshDataGridView();
        }