}//-------------------------------- //############################################END CONTROLCLASSROOMSUBJECTMANAGER ctlManager EVENTS########################################## //##########################################CLASS StudentSearchList EVENTS####################################################### //event is raised when the datagrid is double clicked or enter private void _frmStudentSearchOnDoubleClickEnter(string id) { try { this.Cursor = Cursors.WaitCursor; _cashieringManager.SetServerDateTime(_userInfo); lblRecordDate.Text = "Record Date: " + DateTime.Parse(_cashieringManager.ServerDateTime).ToString(); using (StudentTab frmShow = new StudentTab(_userInfo, _cashieringManager.GetDetailsStudentInformation(_userInfo, id, Application.StartupPath), _cashieringManager, CashieringLogic.ReceiptDate)) { _frmStudentSearch.WindowState = FormWindowState.Minimized; frmShow.ShowDialog(this); _frmStudentSearch.WindowState = FormWindowState.Normal; this.ctlManager.SetFocusOnSearchTextBox(); this.ctlManager.ReceiptNo = CashieringLogic.ReceiptNumber; } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message + "\n\nError Loading Student Tab Mudule.", "Error Loading"); } finally { this.Cursor = Cursors.Arrow; } }//------------------------