예제 #1
0
        } //-------------------------------------

        //event is raised when the button is clicked
        private void ctlManagerOnRefresh()
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                _incManager.RefreshEarningData(_userInfo);
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Refreshing Earning Manager");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        } //-------------------------------------
예제 #2
0
        } //---------------------------------

        //event is raised when the refresh button is clicked
        private void ctlManagerOnRefresh()
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                _incManager.RefreshEarningData(_userInfo);

                lblRecordDate.Text = "Record Date: " + DateTime.Parse(_incManager.ServerDateTime).ToString();

                this.ShowSearchResultDialog();
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Refreshing Earning Manager");
            }
            finally
            {
                this.ctlManager.SetFocusOnSearchTextBox();

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