/// <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; }
public SettingWindow(CommPSO2Bot bot) { InitializeComponent(); this.bot = bot; Settings.Default.botUrl =this.bot.BotUrls[this.bot.SelectShipName]; //ラジオボタンのタグを選択ship識別用オブジェクトとします this.RadioButton_1.Tag = "ship1"; this.RadioButton_2.Tag = "ship2"; this.RadioButton_3.Tag = "ship3"; this.RadioButton_4.Tag = "ship4"; this.RadioButton_5.Tag = "ship5"; this.RadioButton_6.Tag = "ship6"; this.RadioButton_7.Tag = "ship7"; this.RadioButton_8.Tag = "ship8"; this.RadioButton_9.Tag = "ship9"; this.RadioButton_10.Tag = "ship10"; }
/// <summary> /// イベント状況出力メッセージ作成を行います /// </summary> /// <returns></returns> private string outputStatusTxt(CommPSO2Bot.status currentStatus) { string output = ""; switch (currentStatus) { case CommPSO2Bot.status.OverTimeQuest: output = "現在クエストは行われておりません"; break; case CommPSO2Bot.status.GetReady: output = bot.FromTime.ToString() + "より" + bot.Event1 + "-" + bot.Event2 + "が行われます"; break; case CommPSO2Bot.status.InQuest: output = bot.FromTime.ToString() + "~" + bot.ToTime.ToString() + "期間中" + bot.Event1 + "-" + bot.Event2 + "が行われております"; break; } return output; }