/// <summary> /// コンストラクタ /// </summary> public EventPSO2() { timer = new DispatcherTimer(); timer.Tick += timer_Tick; timer.Interval = new TimeSpan(0, 0, 1); bot = new CommPSO2Bot(); this.messageTxt= GetCurentEventMessageTxt(); this.beforeStatus = bot.CurrentStatus; }
//private int counter = 0; /// <summary> /// イベント状況の確認をおこないます /// </summary> /// <returns></returns> private bool checkEvent() { bool output=false; bot.GetStatus(); if (bot.CurrentStatus != beforeStatus) { beforeStatus=bot.CurrentStatus; output=true; this.messageTxt = outputStatusTxt(bot.CurrentStatus); new AlertPSO2EmaergencyQuestException(AlertPSO2EmaergencyQuestException.ErrorLevelType.LEVEL_INFO, this.messageTxt, ""); } #warning デバック用 /* if (counter == 10) { counter = 0; output = true; } counter++; //ここまで */ return output; }