示例#1
0
        private void SetLabelContents()
        {
            unsuccededLabel.Text = TaskModel.GetCurrentDayTaskNumber_Not_Completed(MainFormModel.Month, MainFormModel.Day).ToString();
            succededLabel.Text   = TaskModel.GetCurrentDayTaskNumber_Completed(MainFormModel.Month, MainFormModel.Day).ToString();

            string finalTxt  = MainFormModel.Month < 10 ? "0" + MainFormModel.Month.ToString() : MainFormModel.Month.ToString();
            string finalDTxt = MainFormModel.Day < 10 ? "0" + MainFormModel.Day.ToString() : MainFormModel.Day.ToString();

            monthLabel.Text     = finalTxt + "." + finalDTxt;
            monthLabel.Location = new Point(showPnTitlePn.Width / 2 - monthLabel.Width / 2, monthLabel.Location.Y);
            dayLabel.Text       = InputModel.GetMonthDayName(MainFormModel.Month, MainFormModel.Day);
            dayLabel.Location   = new Point(showPnTitlePn.Width / 2 - dayLabel.Width / 2, dayLabel.Location.Y);
        }