/// <summary> /// depending on current StatusPropertiesModel updates display properties /// </summary> public void UpdateStatusProperties() { StatusPropertiesModel status = new StatusPropertiesModel() { Clicker = ClickerInput ? "Input Simulator" : "JavaScript", Connection = SearchViaTor ? "Tor network" : "Direct connection", PhraseNo = PhraseNo }; if (Paused) { status.Status = "Paused"; } else if (Stopped) { status.Status = "Stopped"; } else if (PleaseWaitVisible) { status.Status = "Waiting"; } else { status.Status = "Running"; } _eventAggregator.GetEvent <UpdateStatusEvent>().Publish(status); }
/// <summary> /// updates several display controls /// </summary> /// <param name="obj"></param> private void OnUpdateStatus(StatusPropertiesModel obj) { StatusControls = obj; }