public void PushNotification(OnegaiModel onegaiModel, OnegaiConditionNotificationState state) { var entry = new OnegaiConditionNotificationEntry(onegaiModel, state); if (this.IsShow()) { this.entryQueue.Enqueue(entry); } else { this.ShowByEntry(entry); } }
private void ShowByEntry(OnegaiConditionNotificationEntry entry) { this.SetContents(entry); this.Show(); this.elapsedShowTime = 0; }
private void SetContents(OnegaiConditionNotificationEntry entry) { this.onegaiConditionNotificationView.UpdateView(entry.OnegaiModel.Title, "満足度 : " + entry.OnegaiModel.Satisfaction.ToString(), entry.State); }