/// <summary> /// Function to Continue Find Period Popup & Fill selected to the buffer. /// </summary> /// <param name="obj"></param> /// <returns>void</returns> /// <createdBy></createdBy> /// <createdOn>May 24,2016</createdOn> private void Continue(object obj) { CommonSettings.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, Resources.loggerMsgStart, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); try { if (SelectedDisRecipientGridItem != null) { DelegateEventCodeAdmin.SetCodeAdminValueMethod(SelectedDisRecipientGridItem); //DelegateEventVehicle.SetValueMethodCmd("Add"); OnCloseWindowRequested(); //DelegateEventCodeAdmin.SetValueMethodEnableNew("EnableNew"); } else { MessageBox.Show(Resources.MsgSelectUser); } } catch (Exception ex) { LogHelper.LogErrorToDb(ex); bool displayErrorOnUI = false; CommonSettings.logger.LogError(this.GetType(), ex); if (displayErrorOnUI) { throw; } } finally { CommonSettings.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, Resources.loggerMsgEnd, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); } }
/// <summary> /// Function to FIll Customer Data on row selection. /// </summary> /// <param name="objLoginProp"></param> /// <returns>void</returns> /// <createdBy></createdBy> /// <createdOn>May 10,2016</createdOn> private void FillData(object obj) { CommonSettings.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, Resources.loggerMsgStart, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); try { DelegateEventCodeAdmin.SetCodeAdminValueMethod(SelectedDisRecipientGridItem); DelegateEventCodeAdmin.SetValueMethodEnableNew("EnableNew"); } catch (Exception ex) { LogHelper.LogErrorToDb(ex); bool displayErrorOnUI = false; CommonSettings.logger.LogError(this.GetType(), ex); if (displayErrorOnUI) { throw; } } finally { CommonSettings.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, Resources.loggerMsgEnd, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); } }