コード例 #1
0
 /// <summary>
 /// Adapt the day planning
 /// </summary>
 /// <param name="o"></param>
 /// <param name="e"></param>
 public void AdaptDayPlanning(object o, EventArgs e)
 {
     if (!(e is TimeEventArgs))
     {
         return;
     }
     TimeEventArgs args = (TimeEventArgs)e;
 }
コード例 #2
0
        /// <summary>
        /// To adapt the end time according to the start time
        /// </summary>
        /// <param name="o"></param>
        /// <param name="e"></param>
        public void TimeChangeFunc(object o, EventArgs e)
        {
            if (!(e is TimeEventArgs))
            {
                return;
            }
            TimeEventArgs args = (TimeEventArgs)e;

            End.MinTime = Start.tt;
        }
コード例 #3
0
        public static void TimeChangedCallBack(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HourControl THIS = d as HourControl;

            THIS.tt = (DateTime)e.NewValue;

            THIS.hh             = THIS.tt.Hour.ToString();
            THIS.hour.Content   = THIS.hh;
            THIS.mm             = THIS.tt.Minute.ToString();
            THIS.minute.Content = THIS.mm;

            TimeEventArgs args = new TimeEventArgs(THIS.tt);

            THIS.OnTimeChanged(args);
        }
コード例 #4
0
 /// <summary>
 /// Event for time changed
 /// </summary>
 /// <param name="args"></param>
 public void OnTimeChanged(TimeEventArgs args)
 {
     TimeChanged?.Invoke(this, args);
 }