Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/ExtendedPropertyChangedEventArgs.cs @ 13834

Last change on this file since 13834 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 895 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.ComponentModel;
7using Microsoft.Research.DynamicDataDisplay;
8
9namespace Microsoft.Research.DynamicDataDisplay
10{
11  public sealed class ExtendedPropertyChangedEventArgs : EventArgs
12  {
13    public string PropertyName { get; set; }
14    public object OldValue { get; set; }
15    public object NewValue { get; set; }
16    public ChangeType ChangeType { get; set; }
17
18    public static ExtendedPropertyChangedEventArgs FromDependencyPropertyChanged(DependencyPropertyChangedEventArgs e)
19    {
20      return new ExtendedPropertyChangedEventArgs { PropertyName = e.Property.Name, NewValue = e.NewValue, OldValue = e.OldValue };
21    }
22
23    internal ExtendedPropertyChangedEventArgs WithChangeType(ChangeType changeType)
24    {
25      ChangeType = changeType;
26      return this;
27    }
28  }
29}
Note: See TracBrowser for help on using the repository browser.