コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }