Пример #1
0
        private void miRegistrationCardReader_Click(object sender, EventArgs e) //открытие справочника Регистрационная карточка
        {
            RegistrationCardForm registrationCardForm = new RegistrationCardForm();

            switch (AuthorizationForm.userRole)
            {
            case 1:
                registrationCardForm.btnInsert.Enabled = true;
                registrationCardForm.btnUpdate.Enabled = true;
                registrationCardForm.btnDelete.Enabled = true;
                break;

            case 5:
                registrationCardForm.btnInsert.Enabled = true;
                registrationCardForm.btnUpdate.Enabled = true;
                registrationCardForm.btnDelete.Enabled = true;
                break;
            }
            registrationCardForm.Show(this);
        }
Пример #2
0
        private void btnRegistrationReader_Click(object sender, EventArgs e)    //открытие формы для регистрации читателя
        {
            RegistrationCardForm registrationCardForm = new RegistrationCardForm();

            registrationCardForm.Show(this);
        }
Пример #3
0
        private void btnUpdateReader_Click(object sender, EventArgs e)  //открытие справочника регистрационные карточки
        {
            RegistrationCardForm registrationCardForm = new RegistrationCardForm();

            registrationCardForm.Show(this);
        }