}//---------------------- //###########################################END BUTTON btnPrint EVENTS##################################################### //###########################################BUTTON lblChangeExamDate EVENTS##################################################### //event is raised when the control is clicked private void lblChangeExamDateClick(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; DateTime eDate = DateTime.Parse(_cashieringManager.ServerDateTime); using (RemoteClient.DatePicker frmPicker = new RemoteClient.DatePicker(eDate)) { frmPicker.ShowDialog(this); if (frmPicker.HasSelectedDate) { if (DateTime.TryParse(frmPicker.GetSelectedDate.ToLongDateString() + " " + DateTime.Parse(_cashieringManager.ServerDateTime).ToLongTimeString(), out eDate)) { _editItem.SubItems[2].Text = _editedDate = eDate.ToLongDateString(); _cashieringManager.EditMajorExamTable(_majorExamId, _editedDate); } } else { _editedDate = String.Empty; } } this.Cursor = Cursors.Arrow; }//------------------------