public BlockManager(HZDateTimePicker dameer, string format) { //Debug.WriteLine("BlockManager"); this._dameer = dameer; this._format = format; this._dameer.LostFocus += new RoutedEventHandler(_dameer_LostFocus); this._blocks = new List <Block>(); this.InitBlocks(); }
static void OnWaterMarkChanged(object sender, DependencyPropertyChangedEventArgs args) { var newValue = (string)args.NewValue; if (!string.IsNullOrEmpty(newValue)) { HZDateTimePicker source = (HZDateTimePicker)sender; source.txtwatermark.Text = (string)args.NewValue; } }