Example #1
0
        private int deleteIndex;   //DataGridView中选择多行的行数

        private void FrmUserInfo_Load(object sender, EventArgs e)
        {
            #region
            try
            {
                //DisableCtrls();

                //btnDelete.Enabled = false;
                //btnSave.Enabled = false;
                //btnUpdate.Enabled = false;
                txtUserName.Focus();
                FrmUserInfoLogic.InitialCbxDuty(cbxDuty);
                cbxDuty.DisplayMember = "name";
                cbxDuty.ValueMember   = "id";
                cbxDuty.SelectedIndex = -1;

                FrmUserInfoLogic.FrmUserInfoSearch("", 1, dgvUserInfo);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
            finally
            {
            }
            #endregion
        }