public SearchStudentModal(int coordinatorId, string typeOfSearch)
        {
            searches search = (searches)System.Enum.Parse(typeof(searches), typeOfSearch);

            InitializeComponent();
            this.TopLevel = false;
            this.AutoScroll = true;
            this.Hide();

            checkBox1.Checked = false;

            if ((int)search == 1)
            {
                this.label1.Text = "Find Student To Update";
                _isUpdateStudent = true;
            }
            else if ((int)search == 2)
            {
                this.label1.Text = "Find Student To Update Consultation";
                _isUpdateStudentConsultation = true;
            }

            _coordinatorId = coordinatorId;
            _group = groupTableAdapter1.GetData();
            _groupId = PopulateGroupComboBox();
        }
        public SearchStudentModal(int coordinatorId, string typeOfSearch)
        {
            searches search = (searches)System.Enum.Parse(typeof(searches), typeOfSearch);

            InitializeComponent();
            this.TopLevel   = false;
            this.AutoScroll = true;
            this.Hide();

            checkBox1.Checked = false;

            if ((int)search == 1)
            {
                this.label1.Text = "Find Student To Update";
                _isUpdateStudent = true;
            }
            else if ((int)search == 2)
            {
                this.label1.Text             = "Find Student To Update Consultation";
                _isUpdateStudentConsultation = true;
            }

            _coordinatorId = coordinatorId;
            _group         = groupTableAdapter1.GetData();
            _groupId       = PopulateGroupComboBox();
        }
        public SearchTutorModal(int coordintaorId, bool isUpdateTutor)
        {
            InitializeComponent();
            this.TopLevel = false;
            this.AutoScroll = true;
            this.Hide();

            if (isUpdateTutor)
                this.label1.Text = "Search for Tutor to Update";

            _coordinatorId = coordintaorId;
            _isUpdateTutor = isUpdateTutor;
            _group = groupTableAdapter1.GetData();
            _groupId = PopulateGroupComboBox();
            isAssignedGroupCheckBox.Checked = true;
        }
        public SearchTutorModal(int coordintaorId, bool isUpdateTutor)
        {
            InitializeComponent();
            this.TopLevel   = false;
            this.AutoScroll = true;
            this.Hide();

            if (isUpdateTutor)
            {
                this.label1.Text = "Search for Tutor to Update";
            }

            _coordinatorId = coordintaorId;
            _isUpdateTutor = isUpdateTutor;
            _group         = groupTableAdapter1.GetData();
            _groupId       = PopulateGroupComboBox();
            isAssignedGroupCheckBox.Checked = true;
        }