示例#1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            DateTime dtNow = DateTime.Now;

            foreach (MissionListViewItem it in lvMission.Items)
            {
                it.OnTimer(dtNow);
            }

            foreach (NDockListViewItem it in lvNDock.Items)
            {
                it.OnTimer(dtNow);
            }

            if (dtNow > dtCondRecoverTime)
            {
                ShowBaloonMessage("コンディション回復通知", condRecoverTimerMsg);
                TimerHandlerListViewItem.PlaySound(Properties.Settings.Default.CondSound);
                dtCondRecoverTime   = DateTime.MaxValue;
                condRecoverTimerMsg = "";
                Text = "遠征・修理ドック情報";
            }
        }
示例#2
0
 public void FinishBattle(string type)
 {
     TimerHandlerListViewItem.PlaySound(Properties.Settings.Default.NotifySound);
     _parent.ShowBaloonMessage("終了通知", string.Format("{0}が終了しました", type));
     //not implemented yet
 }