public async Task <List <StopStatus> > List() { var oStatusRepository = new StatusRepository(); IDataReader oDataReader = null; try { oDataReader = await oStatusRepository.List(); } catch (Exception) { throw; } var lstStatuses = new List <StopStatus>(); while (oDataReader.Read()) { var oStatus = new StopStatus(oDataReader); lstStatuses.Add(oStatus); } oDataReader.Close(); return(lstStatuses); }
// Update selected stops status // StopDto - nested class - properties set up @ ajax // REST API - AJAX // ~/Scripts/Apps/HomeIndex.js - updateStop() public async Task Put([FromBody] StopDto oStopDto) { var oStop = new Stop() { Key = oStopDto.Key, Customer = new Customer() { ID = oStopDto.CustomerID }, CurrentStatus = await StopStatus.Instance(oStopDto.Status) }; var oStopFactory = new StopFactory(); try { await oStopFactory.Update(oStop); } catch (Exception oException) { oException.Log("Update Stop"); this.InternalServerError(); } this.Ok(); }
void IPMCompilerStopped.OnPMCompilerStopped(StopStatus status) { if (status != StopStatus.RuntimeError) { SetState(State.Hidden, fadeTimeOnCompilerStopped); } }
void IPMCompilerStopped.OnPMCompilerStopped(StopStatus status) { //Tooltip.text = "Kör koden!"; //Tooltip.ApplyTooltipTextChange(); thisButton.image.sprite = playImage; }
private void Lf6iiLBYf9(StopStatus status) { this.fStatus = status; this.fCompletionTime = Clock.Now; if (this.fType == StopType.Trailing) { this.series.Add(this.fCompletionTime, this.fStopPrice); } this.fZIiHsKOSJ(); }
private void Complete(StopStatus status) { this.fStatus = status; this.fCompletionTime = Clock.Now; if (this.fType == StopType.Trailing) { this.series.Add(this.fCompletionTime, this.fStopPrice); } this.EmitStatusChanged(); }
virtual protected void Awake() { manager = GameObject.Find("EnemyManager").GetComponent <EnemyManager>(); manager.Enemies.Add(this); move = GetComponent <BaseEnemyMove>(); attack = GetComponent <BaseEnemyAttack>(); Stop = StopStatus.None; HP = hpLiset[GameManager.SelectLevel]; Score *= 1 << GameManager.SelectLevel; }
public void StopCompiler(StopStatus status = StopStatus.CodeForced) { SetWalkerUserPaused(false); compiledCode = null; EvaluateEnabled(); // Call stop events foreach (IPMCompilerStopped ev in UISingleton.FindInterfaces <IPMCompilerStopped>()) { ev.OnPMCompilerStopped(status); } }
public void stopCompiler(StopStatus status = StopStatus.CodeForced) { isRunning = false; theCodeWalker.StopWalker(); // Call stop events foreach (var ev in UISingleton.FindInterfaces <IPMCompilerStopped>()) { ev.OnPMCompilerStopped(status); } }
public void OnPMCompilerStopped(StopStatus status) { if (levelAnswer != null) { levelAnswer.compilerHasBeenStopped = true; } if (status == StopStatus.Finished) { if (PMWrapper.levelShouldBeAnswered && UISingleton.instance.taskDescription.isActiveAndEnabled) { PMWrapper.RaiseTaskError("Fick inget svar"); } } }
internal static SmartQuant.Trading.StopStatus Convert(StopStatus stopStatus) { switch (stopStatus) { case StopStatus.Active: return(SmartQuant.Trading.StopStatus.Active); case StopStatus.Executed: return(SmartQuant.Trading.StopStatus.Executed); case StopStatus.Canceled: return(SmartQuant.Trading.StopStatus.Canceled); default: throw new NotImplementedException("Stop status is not supported : " + stopStatus); } }
public void OnPMCompilerStopped(StopStatus status) { if (status == StopStatus.Finished) { if (levelMode == LevelMode.Sandbox && Main.instance.levelDefinition.cases != null && Main.instance.levelDefinition.cases.Count > 0) { correctProgramPanel.SetActive(true); } else if (levelMode == LevelMode.Case) { foreach (IPMTimeToCorrectCase ev in UISingleton.FindInterfaces <IPMTimeToCorrectCase>()) { ev.OnPMTimeToCorrectCase(); } } else { PMWrapper.SetLevelCompleted(); } } if (status == StopStatus.RuntimeError) { if (levelMode == LevelMode.Case) { Main.instance.caseHandler.CaseFailed(); } } if (status == StopStatus.UserForced) { if (levelMode == LevelMode.Case) { Main.instance.caseHandler.isCasesRunning = false; } } }
private void OnStopStatusChange(StopStatus status) { this.status = status; this.completionTime = this.strategy.framework.Clock.DateTime; // this.strategy.OnStopStatusChanged_(this); }
private void OnStopStatus(EventArgs e) { try { StopStatus?.Invoke(this, e); } catch { } }
private void method_8(StopStatus stopStatus_0) { this.status = stopStatus_0; this.completionTime = this.strategy.Framework.Clock.DateTime; this.strategy.OnStopStatusChanged_(this); }
internal static SmartQuant.Trading.StopStatus Convert(StopStatus stopStatus) { switch (stopStatus) { case StopStatus.Active: return SmartQuant.Trading.StopStatus.Active; case StopStatus.Executed: return SmartQuant.Trading.StopStatus.Executed; case StopStatus.Canceled: return SmartQuant.Trading.StopStatus.Canceled; default: throw new NotImplementedException("Stop status is not supported : " + stopStatus); } }
private void Complete(StopStatus status) { this.status = status; this.completionTime = Clock.Now; }
private void aH7RuF48ZR([In] StopStatus obj0) { this.sCBRwgCW8P = obj0; this.xTNRf1TvWo = Clock.Now; }
private void Complete(StopStatus status) { this.fStatus = status; this.fCompletionTime = Clock.Now; this.fStrategy.EmitStopStatusChanged(this); }
public void Stop(StopStatus s = StopStatus.Stopped) { if (t != null) { t.Stop(); if (Stopped != null) Stopped(this,s); } }
private void Complete(StopStatus status) { this.status = status; this.completionTime = this.strategy.framework.Clock.DateTime; this.strategy.OnStopStatusChanged_(this); }
private void method_8(StopStatus status) { this.status = status; this.completionTime = this.strategy.framework.Clock.DateTime; this.strategy.EmitStopStatusChanged(this); }
private void Lk960PQCI8(StopStatus obj0) { this.fStatus = obj0; this.fCompletionTime = Clock.Now; this.Udd6EeE9v6.BSDIytBhT((StopBase) this); }
private void Lf6iiLBYf9(StopStatus status) { this.fStatus = status; this.fCompletionTime = Clock.Now; if (this.fType == StopType.Trailing) this.series.Add(this.fCompletionTime, this.fStopPrice); this.fZIiHsKOSJ(); }
private void Lk960PQCI8(StopStatus obj0) { this.fStatus = obj0; this.fCompletionTime = Clock.Now; this.Udd6EeE9v6.BSDIytBhT((StopBase)this); }