示例#1
0
        public void SetDate(DateTime dateToSet)
        {
            if (!TcdEditer.IsEditing)
            {
                ScreenTCD.SetDate(SlotType, dateToSet);
            }

            Scaleform.SetDate(dateToSet);
            amProp.SetState(dateToSet.ToString("tt", CultureInfo.InvariantCulture) == "AM");
            pmProp.SetState(dateToSet.ToString("tt", CultureInfo.InvariantCulture) != "AM");

            date   = dateToSet;
            toggle = true;
        }