示例#1
0
        /// <summary>
        /// 表示を更新する
        /// </summary>
        /// <param name="mission">遠征情報</param>
        /// <param name="lblFleetName">艦隊名</param>
        /// <param name="lblMission">遠征名</param>
        /// <param name="lblTime">所要時間</param>
        void updateMissionViewParams(Mission mission, Label lblFleetName, Label lblMission
                                     , CountdownLabel lblTime)
        {
            lblFleetName.Text      = mission.DeckName;
            lblFleetName.BackColor = mission.SupplyStatusColor;
            toolTip1.SetToolTip(lblFleetName, mission.SupplyStatusText);

            if (mission.Valid)
            {
                lblMission.Text = mission.Name;
                toolTip1.SetToolTip(lblMission, mission.Detail);
                lblTime.FinishTime = mission.Finish;
                toolTip1.SetToolTip(lblTime, mission.Finish.ToString());
            }
            else
            {
                lblMission.Text = "";
                toolTip1.SetToolTip(lblMission, null);
                lblTime.Valid = false;
                toolTip1.SetToolTip(lblTime, null);
            }
        }
示例#2
0
        /// <summary>
        /// 表示を更新する
        /// </summary>
        /// <param name="mission">遠征情報</param>
        /// <param name="lblFleetName">艦隊名</param>
        /// <param name="lblMission">遠征名</param>
        /// <param name="lblTime">所要時間</param>
        void updateMissionViewParams(Mission mission,Label lblFleetName,Label lblMission
            ,CountdownLabel lblTime)
        {
            lblFleetName.Text = mission.DeckName;
            lblFleetName.BackColor = mission.SupplyStatusColor;
            toolTip1.SetToolTip(lblFleetName, mission.SupplyStatusText);

            if (mission.Valid)
            {
                lblMission.Text = mission.Name;
                toolTip1.SetToolTip(lblMission, mission.Detail);
                lblTime.FinishTime = mission.Finish;
                toolTip1.SetToolTip(lblTime, mission.Finish.ToString());

            }
            else
            {
                lblMission.Text = "";
                toolTip1.SetToolTip(lblMission, null);
                lblTime.Valid = false;
                toolTip1.SetToolTip(lblTime, null);
            }
        }