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

        //##############################################END BUTTON btnSearchSubject EVENTS####################################################

        //##############################################LINK LABEL lblAddDetails EVENTS####################################################
        //event is raised when the control is clicked
        private void lnkAddDetailsLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                using (AuxiliaryScheduleDetailsCreate frmCreate = new AuxiliaryScheduleDetailsCreate(_userInfo, _serviceInfoSchedule, _auxiliaryManager))
                {
                    frmCreate.ShowDialog(this);

                    if (frmCreate.HasCreated)
                    {
                        _hasUpdatedDetails = true;

                        this.dgvAuxiliaryDetails.DataSource =
                            _auxiliaryManager.GetBySysIdAuxiliaryServiceDetailsTable(_serviceInfoSchedule.AuxServiceScheduleSysId, false);
                        this.dgvMarkDeleted.DataSource =
                            _auxiliaryManager.GetBySysIdAuxiliaryServiceDetailsTable(_serviceInfoSchedule.AuxServiceScheduleSysId, true);

                        this.btnSearchAuxiliary.Visible = false;
                    }
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Auxiliary Service Details Create Module");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//----------------------------