}//---------------------- //###########################################END BUTTON lnkFilter 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(_studentManager.ServerDateTime); using (RemoteClient.DatePicker frmPicker = new RemoteClient.DatePicker(eDate)) { frmPicker.ShowDialog(this); if (frmPicker.HasSelectedDate) { if (DateTime.TryParse(frmPicker.GetSelectedDate.ToLongDateString() + " " + DateTime.Parse(_studentManager.ServerDateTime).ToLongTimeString(), out eDate)) { _editItem.SubItems[2].Text = _editedDate = eDate.ToLongDateString(); _studentManager.EditMajorExamTable(_majorExamId, _editedDate); } } else { _editedDate = String.Empty; } } this.Cursor = Cursors.Arrow; }//------------------------