Esempio n. 1
0
        public static LuaDate CreateDateWithTime(int day, int month, int year, int hour, int minute, int second)
        {
            LuaDate ret = new LuaDate();

            ret.dateStore = new DateTime(year, month, day, hour, minute, second, DateTimeKind.Local);
            return(ret);
        }
Esempio n. 2
0
        public static LuaDate CreateDate(int day, int month, int year)
        {
            LuaDate ret = new LuaDate();

            ret.dateStore = new DateTime(year, month, day);
            return(ret);
        }
Esempio n. 3
0
        public static LuaDate Now()
        {
            LuaDate ret = new LuaDate();

            ret.dateStore = DateTime.Now;
            return(ret);
        }
Esempio n. 4
0
        public void SetTime(LuaDate date)
        {
#if WINDOWS_PHONE
            if (dialogType == DIALOG_TYPE_TIMEPICKER)
            {
                ((TimePicker)(((CustomMessageBox)dialog).Content)).Value = new DateTime(0, 0, 0, date.GetHour(), date.GetMinute(), 0, 0);
            }
#endif
        }
Esempio n. 5
0
        public void SetDate(LuaDate date)
        {
#if WINDOWS_PHONE
            if (dialogType == DIALOG_TYPE_DATEPICKER)
            {
                ((DatePicker)(((CustomMessageBox)dialog).Content)).Value = new DateTime(date.GetYear(), date.GetMonth(), date.GetDay(), 0, 0, 0, 0);
            }
#endif
        }