Exemple #1
0
        } //--------------------------

        //this procedure shows the subject schedule update dialog
        private void ShowUpdateAuxiliaryServiceScheduleDialog(String id)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                using (AuxiliaryScheduleUpdate frmUpdate = new AuxiliaryScheduleUpdate(_userInfo, _auxiliaryManager.GetDetailsAuxiliarySchedule(id),
                                                                                       _auxiliaryManager))
                {
                    _frmServiceScheduleSearch.WindowState = FormWindowState.Minimized;

                    frmUpdate.ShowDialog(this);

                    if (frmUpdate.HasUpdated || frmUpdate.HasDeleted)
                    {
                        this.ShowSearchResultDialog();
                    }

                    _frmServiceScheduleSearch.WindowState = FormWindowState.Normal;
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Update Auxiliary Service Schedule Module");
            }
            finally
            {
                this.ctlManagerAux.SetFocusOnSearchTextBox();

                this.Cursor = Cursors.Arrow;
            }
        } //-------------------------