Example #1
0
            public TimeViewItem(DateTime time, AMPMS ampm)
            {
                var factory = new TimeFactory();

                var sdatefmt = new DateTimeFormatter("shortdate");

                Date = sdatefmt.Format(time);
                Time = $"{MiruConverter.ConvertNumber(MiruConverter.ConvertHour(time.Hour))}:{MiruConverter.ConvertNumber(time.Minute)}";
                AMPM = TimeConverter.ConvertString(ampm);
            }
Example #2
0
        public static string ConvertString(AMPMS target)
        {
            string result = string.Empty;

            switch (target)
            {
            case AMPMS.AM:
                result = StringManager.GetString("AM");
                break;

            case AMPMS.PM:
                result = StringManager.GetString("PM");
                break;
            }
            return(result);
        }