Exemplo n.º 1
0
        public static TimeRulerViewModel Create(string caption, TimeZoneInfo timeZoneInfo)
        {
            TimeRulerViewModel timeRuler = TimeRulerViewModel.Create();

            timeRuler.Caption  = caption;
            timeRuler.TimeZone = timeZoneInfo;
            timeRuler.AlwaysShowTimeDesignator = false;
            timeRuler.ShowMinutes = false;
            return(timeRuler);
        }
Exemplo n.º 2
0
 private void CreateTimeRulers()
 {
     TimeRulers = new ObservableCollection <TimeRulerViewModel>();
     TimeRulers.Add(TimeRulerViewModel.Create("GMT", TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time")));
     TimeRulers.Add(TimeRulerViewModel.Create("Local", TimeZoneInfo.Local));
 }