public void PopulateTextBoxes(ApplicationEntry _app) { DesiredAddress.Text = _app.DesiredAddress; DesiredDate.Date = _app.MoveDate; CurrentAddress.Text = _app.CurrentAddress; CSZ.Text = _app.CurrentCSZ; MoveDate.Date = _app.CurrMoveDate; LandlordName.Text = _app.CurrLandlordName; LandlordPhone.Text = _app.CurrLandlordPhone; Rent.Text = _app.CurrRent.ToString(); MoveReason.Text = _app.CurrMoveReason; PrevAddress1.Text = _app.PrevAddress1; CSZ1.Text = _app.PrevCSZ1; MoveDate1.Date = _app.PrevMoveDate1; MoveOutDate1.Date = _app.PrevMoveOutDate1; LandlordName1.Text = _app.PrevLandlordName1; LandlordPhone1.Text = _app.PrevLandlordPhone1; Rent1.Text = _app.PrevRent1.ToString(); PrevAddress2.Text = _app.PrevAddress2; CSZ2.Text = _app.PrevCSZ2; MoveDate2.Date = _app.PrevMoveDate2; MoveOutDate2.Date = _app.PrevMoveOutDate2; LandlordName2.Text = _app.PrevLandlordName2; LandlordPhone2.Text = _app.PrevLandlordPhone2; Rent2.Text = _app.PrevRent2.ToString(); }
public static GuidePanel GetInst() { if (_inst == null) { ResourceLoader.LoadAssetAndInstantiate("PrefabUI/Common/GuidePanel", ApplicationEntry.GetInst().uiRoot); } return(_inst); }
public void LoadConfigIpCallback() { LoginPanel.GetInst().OnConfigLoadEnd(); ServerListPanel.GetInst().SetServerInfo(); _gameObject.SetActive(false); ApplicationEntry.GetInst().OnConfigLoadEnd(); }
public EntryPage3(EntryPage1 p1) { InitializeComponent(); ep1 = p1; thisApp = ep1.app; ep1.app.CurrentPage = 3; thisApp.CurrentPage = 3; PopulateTextBoxes(thisApp); }
public EntryPage5(EntryPage1 p1) { InitializeComponent(); ep1 = p1; thisApp = ep1.app; ep1.app.CurrentPage = 5; thisApp.CurrentPage = 5; PopulateFields(thisApp); }
public void PopulateTextBoxes(ApplicationEntry _app) { Employer.Text = _app.CurrentEmployer; EmpPhoneNo.Text = _app.EmpPhoneNo; GrossWage.Text = _app.GrossWages.ToString(); ManagerName.Text = _app.ManagerName; HireDate.Date = _app.HireDate; IncomeSrc.Text = _app.IncomeSrcs; Explanation.Text = _app.Explanation; }
public EntryPage2(EntryPage1 p1) { InitializeComponent(); ep1 = p1; thisApp = ep1.app; ep1.app.CurrentPage = 2; thisApp.CurrentPage = 2; DesiredDate.SetValue(DatePicker.MinimumDateProperty, DateTime.Now); PopulateTextBoxes(thisApp); }
public AgreePage(EntryPage1 p1) { InitializeComponent(); ep1 = p1; thisApp = ep1.app; ep1.app.CurrentPage = 6; thisApp.CurrentPage = 6; InternetExplorer.Source = "https://nitishv.dev/assets/doc/JKRentals_EULA.html"; NamePlaceHolder.Text = "Applicant: " + thisApp.FirstName + " " + thisApp.LastName; DatePlaceHolder.Text = "Today's Date: " + DateTime.Today.ToShortDateString(); }
public Application(ApplicationEntry e) { PaymentMethod = e.PaymentMethod; CardBrand = e.CardBrand; AcquirerNumber = e.AcquirerNumber; RecordNumber = e.RecordNumber; EmvTags = new int[256]; var tags = e.EmvTags.Split(',').Select(int.Parse).ToArray(); for (var i = 0; i < tags.Length; i++) { EmvTags[i] = tags[i]; } EmvTagsLength = tags.Length; }
private void Awake() { Application.targetFrameRate = 45; Application.runInBackground = true; Input.multiTouchEnabled = false; Screen.sleepTimeout = SleepTimeout.NeverSleep; _inst = this; _gameObject = gameObject; _appConst = _gameObject.AddComponent <ApplicationConst>(); _gameObject.AddComponent <InputManager>(); _gameObject.AddComponent <SocketHandler>(); _gameObject.AddComponent <ServiceManager>(); PlatformSet(); SocketHandler.GetInst().Init(2); }
public static void ShowMsgBox(string sTitle, string sContent, int iType, MsgCallback okCb = null, MsgCallback cancelCb = null, string singleMark = "") { if (singleMark != string.Empty) { if (lstMsgBox.Contains(singleMark)) { return; } lstMsgBox.Add(singleMark); } GameObject go = Instantiate(Resources.Load <GameObject>("PrefabUI/Common/MessageBox")); Transform tran = go.transform; tran.SetParent(ApplicationEntry.GetInst().uiRoot, false); tran.localScale = Vector3.one; go.GetComponent <MsgBoxPanel>().Show(sTitle, sContent, iType, okCb, cancelCb, singleMark); }
private void Awake() { Application.targetFrameRate = 45; Application.runInBackground = true; Input.multiTouchEnabled = false; Screen.sleepTimeout = SleepTimeout.NeverSleep; _inst = this; _gameObject = gameObject; _appConst = _gameObject.AddComponent <ApplicationConst>(); uiRoot.sizeDelta = ApplicationConst.uiSize; _gameObject.AddComponent <ResourceMgr>(); _gameObject.AddComponent <InputManager>(); _gameObject.AddComponent <SocketHandler>(); _gameObject.AddComponent <ServiceManager>(); _gameObject.AddComponent <FormulaManager>(); _gameObject.AddComponent <Database>(); PlatformSet(); }
protected FileEntry(ApplicationEntry applicationEntry, FileHandle fileHandle, FileStats stats) { ApplicationEntry = applicationEntry; _rawFileHandle = fileHandle; Stats = stats; }
public void AddPreset(string name, Dictionary <ControlAttributes, Client.Model.ApplicationModel> appDic, Dictionary <ControlAttributes, Client.Model.VncModel> vncDic, Dictionary <ControlAttributes, InputAttributes> visionDic) { PresetDataEntry dataEntry = new PresetDataEntry(); dataEntry.Name = name; dataEntry.PresetAppList = new List <ApplicationEntry>(); dataEntry.PresetAppPos = new List <WndPos>(); dataEntry.PresetVisionInputList = new List <InputAttributes>(); dataEntry.PresetVisionInputPos = new List <WndPos>(); dataEntry.PresetVncList = new List <VncEntry>(); dataEntry.PresetVncPos = new List <WndPos>(); foreach (KeyValuePair <ControlAttributes, Client.Model.ApplicationModel> pair in appDic) { ApplicationEntry appEntry = new ApplicationEntry() { Identifier = pair.Value.AppliationId, Name = pair.Value.ApplicationName, }; WndPos wndPos = new WndPos() { posX = pair.Key.Xpos, posY = pair.Key.Ypos, width = pair.Key.Width, height = pair.Key.Height, style = pair.Key.Style, }; dataEntry.PresetAppList.Add(appEntry); dataEntry.PresetAppPos.Add(wndPos); } foreach (KeyValuePair <ControlAttributes, Client.Model.VncModel> pair in vncDic) { VncEntry vncEntry = new VncEntry() { Identifier = pair.Value.Identifier, DisplayName = pair.Value.DisplayName, IpAddress = pair.Value.VncServerIp, Port = pair.Value.VncServerPort, }; WndPos wndPos = new WndPos() { posX = pair.Key.Xpos, posY = pair.Key.Ypos, width = pair.Key.Width, height = pair.Key.Height, style = pair.Key.Style, }; dataEntry.PresetVncList.Add(vncEntry); dataEntry.PresetVncPos.Add(wndPos); } foreach (KeyValuePair <ControlAttributes, InputAttributes> pair in visionDic) { WndPos wndPos = new WndPos() { posX = pair.Key.Xpos, posY = pair.Key.Ypos, width = pair.Key.Width, height = pair.Key.Height, style = pair.Key.Style, }; dataEntry.PresetVisionInputList.Add(pair.Value); dataEntry.PresetVisionInputPos.Add(wndPos); } ClientPresetsCmd presetCmd = new ClientPresetsCmd() { ControlType = ClientPresetsCmd.EControlType.Add, PresetDataEntry = dataEntry, }; connectionMgr.BroadcastMessage( (int)CommandConst.MainCommandClient.Functionality, (int)CommandConst.SubCommandClient.Preset, presetCmd); }
public void OnLogout(string msg) { ApplicationEntry.HandleExit(); }
public ReviewPage(ApplicationEntry e) { InitializeComponent(); _app = e; BindingContext = _app = e; }
public void PopulateFields(ApplicationEntry app) { AddlInfo.Text = ep1.app.AddlInfo; }
public void ToLoginPanel() { ClosePanel(); ApplicationEntry.ToLoginScene(); }
public void PopulateFields(ApplicationEntry _app) { HouseLife.Text = ep1.app.StayDuration; Pets.Text = ep1.app.Pets; Evictions.Value = ep1.app.NumEvictions; NumEvictions.Text = Evictions.Value.ToString(); Felonies.Value = ep1.app.NumFelonies; NumFelonies.Text = Felonies.Value.ToString(); BrokeLease.IsToggled = ep1.app.BrokeLease; if (BrokeLease.IsToggled) { YN_BrokeLease.Text = "Yes"; } else { YN_BrokeLease.Text = "No"; } Smoke.IsToggled = ep1.app.Smoke; if (Smoke.IsToggled) { YN_Smoke.Text = "Yes"; } else { YN_Smoke.Text = "No"; } CheckAcct.IsToggled = ep1.app.CheckAcct; if (CheckAcct.IsToggled) { YN_CheckAcct.Text = "Yes"; } else { YN_CheckAcct.Text = "No"; } Vehicles.Value = ep1.app.NumVehicles; NumVehicles.Text = Vehicles.Value.ToString(); AmtReady.IsToggled = ep1.app.AmtReady; if (AmtReady.IsToggled) { YN_AmtReady.Text = "Yes"; } else { YN_AmtReady.Text = "No"; } LimitRent.Text = ep1.app.LimitRent; MoneyValue.Text = ep1.app.MoneyValue; EmergencyName.Text = ep1.app.EmergencyName; EmergencyPhone.Text = ep1.app.EmergencyPhone; HearSource.Text = ep1.app.HearSource; WhyRent.Text = ep1.app.WhyRent; }
private const int LONG_MESSAGE_END = 5; //长链接消息结束 public override void ProcessMessage(ConnectBase conn, ByteBuffer data) { int type, errCode; int moduleId = data.readByte(); switch (moduleId) { case LONG_CONNECTED: type = data.readByte(); if (type == 0) { LoginPanel.GetInst().OnPlatformLogin(); } else { CommonCommand.ExecuteLongBattle(Client2ServerList.GetInst().C2S_BATTLE_LOGIN, new ArrayList() { PlayerData.PlayerId }); } //ConnectLong.GetInst().ConnectedFunc(); break; case LCONNECT_EXCEPTION: type = data.readByte(); errCode = data.readInt(); if (10049 == errCode || //Cannot assign requested address 10051 == errCode || //Network is unreachable 10054 == errCode || //Connection reset by peer 10057 == errCode || //Socket is not connected 10058 == errCode || //Cannot send after socket shutdown 10060 == errCode || //Connection timed out 10061 == errCode || //Connection refused 0 == errCode) //Directly send error { if (type == 0) { ApplicationEntry.ToLoginScene(); } } else if (10053 != errCode) { Debug.LogError(string.Format("LCONNECT_EXCEPTION-Code:{0}", errCode)); } break; case SCONNECT_EXCEPTION: errCode = data.readInt(); MsgBoxPanel.MsgCallback Reconnect = () => { ConnectShort co = (ConnectShort)conn; SocketHandler.GetInst().ShortSend(co.m_Data, co.m_bFlag, co.m_bNeedEncrypt); SocketHandler.ShortSendBackFun(); }; MsgBoxPanel.ShowMsgBox(string.Empty, (string)ApplicationConst.dictStaticText["22"], 1, Reconnect); break; case LONG_MESSAGE_END: Connecting.GetInst().ForceHide(); break; default: break; } }
public async ValueTask <IEnumerable <DirentEntry> > ReadEntries() { var entries = await ApplicationEntry.FileService.ReadDirectory(FileHandle.Value); return(entries.Select(entry => new DirentEntry(entry.Name, ApplicationEntry.CreateFile(entry.FileHandle, entry.Stats)))); }
public void ExitOk(GameObject go, int index) { ApplicationEntry.HandleExit(); }
void OnDestroy() { _inst = null; }
public void OnLogoutSuccess(string msg) { ApplicationEntry.ToLoginScene(); }
public DirectoryEntry(ApplicationEntry applicationEntry, FileHandle fileHandle, FileStats stats) : base(applicationEntry, fileHandle, stats) { }
public UnknownFileEntry(ApplicationEntry applicationEntry, FileHandle fileHandle, FileStats stats) : base(applicationEntry, fileHandle, stats) { }
public RegularFileEntry(ApplicationEntry applicationEntry, FileHandle fileHandle, FileStats stats) : base(applicationEntry, fileHandle, stats) { }
void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { if (!PlatformBase.sdkInterface.OnExit()) { MsgBoxPanel.ShowMsgBox(string.Empty, (string)ApplicationConst.dictStaticText["25"], 2, new MsgBoxPanel.MsgCallback(() => { ApplicationEntry.HandleExit(); }), null, "ExitGame"); } } #if UNITY_IOS || UNITY_ANDROID else if (ApplicationConst.bGM) { fCurZ = Input.acceleration.z; if (fCurZ > 0f) { fTempZ = fCurZ - fLastZ; fLastZ = fCurZ; if (fTempZ > 0.8f && null != GMPanel.GetInst()) { GMPanel.GetInst().OpenPanel(); } } } #elif UNITY_STANDALONE else if (ApplicationConst.bGM && Input.GetKeyDown(KeyCode.F12)) { if (null != GMPanel.GetInst()) { GMPanel.GetInst().BeShowWnd(); } } #endif }
// Use this for initialization void Start() { //玩家是否手动设置了画质 string userSet = PlayerPrefs.GetString("UserSetQualityLevel"); GameManager.Instance.QualityLv = PlayerPrefs.GetInt("QualityLevel", GameManager.Instance.QualityLv); if (string.IsNullOrEmpty(userSet)) { //如果玩家没设置过并且是0 则设置为3 中等画质 if (GameManager.Instance.QualityLv == 0) { GameManager.Instance.QualityLv = 3; } } QualitySettings.SetQualityLevel(GameManager.Instance.QualityLv); inst = this; DontDestroyOnLoad(uiRoot); DontDestroyOnLoad(ui3DCamera); DontDestroyOnLoad(this); GameManager.Instance.JudgeIsPad(); #if UNITY_IOS || UNITY_IPHONE XyskIOSAPI.SetNotBackup(); #endif uiCamera_ = uiRoot.GetComponentInChildren <UICamera>().camera; Application.targetFrameRate = 30; Application.runInBackground = true; Screen.sleepTimeout = SleepTimeout.NeverSleep; // catch global log Application.RegisterLogCallback(logReport); VersionManager.Instance.finishDownFileEvent += new RequestEventHandler <int>(OnFinishDownFileEvent); VersionManager.Instance.CopyEvent += new RequestEventHandler <int>(OnCopyEvent); NetConnection.Instance.discard(); version = GameManager.Instance.GetVersionNum(); platformPath = GameManager.Instance.PlatformToString(); if (string.IsNullOrEmpty(version)) { //版本获取不到,请下载最新游戏包 return; } //拼合cdn地址 //GlobalValue.cdnservhost = string.Format("{0}{1}/{2}", GlobalValue.cdnservhost, version, platformPath); PlayerDepLoader.Instance.OnPlayerLoaded += PlayerAsseMgr.LoadRefAssetsFin; EffectDepLoader.Instance.OnEffectLoaded += EffectAssetMgr.LoadRefAssetsFin; // AssetLoader.LoadAssetBundle("commonAssets", AssetLoader.EAssetType.ASSET_UI, (AssetBundle bundle, ParamData data) => // { // //PopText.Instance.Init(); // //NpcHeadChat.Instance.Init(); // //UIManager.Instance.InitIconCell(); // //GuideManager.Instance.creator.InitArrow(); // //AssetLoader.LoadAssetBundle("PlayerShader", AssetLoader.EAssetType.ASSET_PLAYER, null, null); // //StartCoroutine(PullResFolderName()); // mayPullResFolderName = true; // TransferRate._Inst.Send("Load CommonAssets End"); // }, null, Configure.assetsPathstreaming); mayPullResFolderName = true; mayShowSysNotice = true; //cinemaPre_ = Resources.Load<GameObject>("Cinema"); //Caching.CleanCache(); }
public void OnChannelExit(string msg) { ApplicationEntry.HandleExit(); }