Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        // 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();
        }
Esempio n. 3
0
 void IPMCompilerStopped.OnPMCompilerStopped(StopStatus status)
 {
     if (status != StopStatus.RuntimeError)
     {
         SetState(State.Hidden, fadeTimeOnCompilerStopped);
     }
 }
Esempio n. 4
0
        void IPMCompilerStopped.OnPMCompilerStopped(StopStatus status)
        {
            //Tooltip.text = "Kör koden!";
            //Tooltip.ApplyTooltipTextChange();

            thisButton.image.sprite = playImage;
        }
Esempio n. 5
0
 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();
 }
Esempio n. 6
0
 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();
 }
Esempio n. 7
0
 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;
 }
Esempio n. 8
0
        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);
            }
        }
Esempio n. 9
0
        public void stopCompiler(StopStatus status = StopStatus.CodeForced)
        {
            isRunning = false;

            theCodeWalker.StopWalker();

            // Call stop events
            foreach (var ev in UISingleton.FindInterfaces <IPMCompilerStopped>())
            {
                ev.OnPMCompilerStopped(status);
            }
        }
Esempio n. 10
0
        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");
                }
            }
        }
Esempio n. 11
0
        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);
            }
        }
Esempio n. 12
0
        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;
                }
            }
        }
Esempio n. 13
0
 private void OnStopStatusChange(StopStatus status)
 {
     this.status = status;
     this.completionTime = this.strategy.framework.Clock.DateTime;
    // this.strategy.OnStopStatusChanged_(this);
 }
Esempio n. 14
0
 private void OnStopStatus(EventArgs e)
 {
     try { StopStatus?.Invoke(this, e); } catch { }
 }
Esempio n. 15
0
 private void method_8(StopStatus stopStatus_0)
 {
     this.status         = stopStatus_0;
     this.completionTime = this.strategy.Framework.Clock.DateTime;
     this.strategy.OnStopStatusChanged_(this);
 }
Esempio n. 16
0
		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);
			}
		}
Esempio n. 17
0
 private void Complete(StopStatus status)
 {
     this.status         = status;
     this.completionTime = Clock.Now;
 }
Esempio n. 18
0
 private void aH7RuF48ZR([In] StopStatus obj0)
 {
     this.sCBRwgCW8P = obj0;
     this.xTNRf1TvWo = Clock.Now;
 }
Esempio n. 19
0
 private void Complete(StopStatus status)
 {
     this.fStatus         = status;
     this.fCompletionTime = Clock.Now;
     this.fStrategy.EmitStopStatusChanged(this);
 }
Esempio n. 20
0
 public void Stop(StopStatus s = StopStatus.Stopped)
 {
     if (t != null)
     {
         t.Stop();
         if (Stopped != null)
             Stopped(this,s);
     }
 }
Esempio n. 21
0
 private void Complete(StopStatus status)
 {
     this.status         = status;
     this.completionTime = this.strategy.framework.Clock.DateTime;
     this.strategy.OnStopStatusChanged_(this);
 }
Esempio n. 22
0
 private void method_8(StopStatus status)
 {
     this.status = status;
     this.completionTime = this.strategy.framework.Clock.DateTime;
     this.strategy.EmitStopStatusChanged(this);
 }
Esempio n. 23
0
 private void aH7RuF48ZR([In] StopStatus obj0)
 {
   this.sCBRwgCW8P = obj0;
   this.xTNRf1TvWo = Clock.Now;
 }
Esempio n. 24
0
 private void method_8(StopStatus stopStatus_0)
 {
     this.status = stopStatus_0;
     this.completionTime = this.strategy.Framework.Clock.DateTime;
     this.strategy.OnStopStatusChanged_(this);
 }
Esempio n. 25
0
File: Stop.cs Progetto: heber/FreeOQ
 private void Lk960PQCI8(StopStatus obj0)
 {
   this.fStatus = obj0;
   this.fCompletionTime = Clock.Now;
   this.Udd6EeE9v6.BSDIytBhT((StopBase) this);
 }
Esempio n. 26
0
		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();
		}
Esempio n. 27
0
 private void method_8(StopStatus status)
 {
     this.status         = status;
     this.completionTime = this.strategy.framework.Clock.DateTime;
     this.strategy.EmitStopStatusChanged(this);
 }
Esempio n. 28
0
 private void Lk960PQCI8(StopStatus obj0)
 {
     this.fStatus         = obj0;
     this.fCompletionTime = Clock.Now;
     this.Udd6EeE9v6.BSDIytBhT((StopBase)this);
 }