private void getSystemConfig () { TCNotificationCenter.defaultCenter.addObserver (this, MConstants.kPostCouldNotGetData, new TCSelector(notGetDataConfig)); TCGlobals.getInstance.isAtScreenConfig = true; TCGlobals.getInstance.isNoGetConfiged = true; TCConfigHelper configHelper = new TCConfigHelper (this); configHelper.Delegate = this; configHelper.getSystemConfig (); }
public void getConfigFail (TCConfigHelper helper) { TCGlobals.getInstance.isAtScreenConfig = false; noticeNotRetrieveData (); }
public void finishGetConfigRequest (TCConfigHelper helper) { this.loadingView.dismiss (); }
public void getConfigSuccess (TCConfigHelper helper, SystemDTO sysConfig) { MApplication.getInstance ().systemConfig = sysConfig; TCGlobals.getInstance.isNoGetConfiged = false; string strStartDate = ""; string strEndDate = ""; if (MApplication.getInstance ().isConsultant && this.bookingInfo.Status == (int)CoreSystem.Constants.STATUS.Requested && bookingInfo.Type == (int)CoreSystem.Constants.TALKNOWTYPE.ASAP) { strStartDate = MUtils.dateTimeToString (CoreSystem.Utils.getDateTimeNow(MApplication.getInstance().timezoneName).AddSeconds(sysConfig.minimumLeadTime * 60), MUtils.kFormatDateTimeDefaultPlatform); strEndDate = MUtils.dateTimeToString (CoreSystem.Utils.getDateTimeNow(MApplication.getInstance().timezoneName).AddSeconds((sysConfig.minimumLeadTime + sysConfig.minimumBooking) * 60), MUtils.kFormatDateTimeDefaultPlatform); } else { strStartDate = MUtils.stringDateToString (bookingInfo.StartTime, MUtils.kFormatDateTimeDefaultPlatform); strEndDate = MUtils.stringDateToString (bookingInfo.EndTime, MUtils.kFormatDateTimeDefaultPlatform); } this.lbStartTime.Text = strStartDate; this.lbEndTime.Text = strEndDate; }
public void beginGetConfigRequest (TCConfigHelper helper) { this.loadingView.show (); }