Exemplo n.º 1
0
        }//--------------------------

        //##################################END CHECKBOX chkIsIrregularLoading EVENTS######################################################

        //##################################TEXTBOX txtSearch EVENTS##########################################################
        //event is raised when the key is up
        protected override void txtSearchKeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                try
                {
                    this.Cursor = Cursors.WaitCursor;

                    this.SetDataGridViewSource(_teacherLoadingManager.GetSearchedSubjectScheduleServiceInformation(((TextBox)sender).Text, _yearId, _semesterSysid));

                    this.SelectFirstRowInDataGridView();
                }
                catch (Exception ex)
                {
                    RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Retrieving Student List");
                }
                finally
                {
                    this.Cursor = Cursors.Arrow;
                }
            }

            base.txtSearchKeyUp(sender, e);
        }//--------------------