/// <summary> /// информация о состоянии смены /// </summary> /// <param name="StageStateString"></param> private static void CashDesk_StageStateReceived(StageProperties StageState) { try { //SystemState.KKTStageOpened = (StageState.CurrentStageState == StageProperties.StageState.Opened); StartPage.SystemState.KKTStageOver24h = (StageState.CurrentStageState == StageProperties.StageState.Over24h); StartPage.SystemState.LastStageClosedDateTime = Convert.ToInt64(StageState.StageClosedDateTime.ToString("yyyyMMddHHmmss")); StartPage.SystemState.LastStageClosedDateTimeStr = StageState.StageClosedDateTime.ToString("dd.MM.yyyy HH:mm:ss"); if (StartPage.CurrentState != StartPage.States.Init && StartPage.CurrentState != StartPage.States.OutOfService && StartPage.CurrentState != StartPage.States.ServiceMode && StartPage.SystemState.KKTStageOver24h) { StartPage.CurrentState = StartPage.States.OutOfService; #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed MDB.DisableCashDevicesAsync(); #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { var frame = Window.Current.Content as Frame; frame.Navigate(typeof(OutOfServicePage)); }); #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed StartPage.AddItemToLogBox("Длительность смены превысила 24ч, устройство переведено в режим \"Не обслуживает\""); } } catch { } }
public Stage(StageProperties stage) // Scriptable Data (本当はメモリコピーせず参照だけ持っておきたい!!また今度やる。。。) { BalloonLimit = stage.BalloonLimit; BalloonHP = stage.BalloonHP; AttackSpan = stage.AttackSpan; BalloonWeaponKey = stage.BalloonWeaponKey; IsBalloonAction = stage.IsBalloonAction; BalloonArrangementMode = stage.BalloonArrangementMode; TimeLimit = stage.TimeLimit; ShootingLimit = stage.ShootingLimit; GameClearCondition = stage.GameClearCondition; RankUpThreshold = stage.RankUpThreshold; }