public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (!(value is TimeSpan source))
     {
         return("Wrong type.");
     }
     return(StaticFuncs.GetTimeRest(source));
 }
Beispiel #2
0
 public override void Update()
 {
     attachedConference.RestTime = attachedConference.StartTime - DateTime.Now;
     if (attachedConference.RestTime.Hours == 0 &&
         attachedConference.RestTime.Minutes == 0 &&
         attachedConference.RestTime.Seconds == 30)
     {
         StaticFuncs.showBalloon($"Конференция {attachedConference.Name}", $"Начало через {StaticFuncs.GetTimeRest(attachedConference.RestTime)}");
     }
 }