Exemplo n.º 1
0
        private void ShowStudentListForm()
        {
            if (!AppPermissions.Check("StudentListForm"))
            {
                MessageBox.Show("У вас нет разрешения на использование этой части приложения.");

                return;
            }

            if (_studentListFormOpened)
            {
                StudentListForm.Activate();
                StudentListForm.Focus();
                return;
            }

            StudentListForm        = new StudentList(ApiEndpoint);
            _studentListFormOpened = true;
            StudentListForm.Show();
            _studentListFormOpened = false;
        }