1 using System.ComponentModel;
5 namespace DirectOutput.GlobalConfiguration
10 #region INotifyPropertyChanged Member
15 private void NotifyPropertyChanged(
string PropertyName)
17 if (PropertyChanged != null)
19 PropertyChanged(
this,
new PropertyChangedEventArgs(PropertyName));
28 private string _Filename =
"";
29 private FileInfo _File;
31 public string Filename
33 get {
return _Filename; }
39 _File =
new FileInfo(value);
45 NotifyPropertyChanged(
"FileName");
57 public bool FileExists
73 if (Filename.IsNullOrWhiteSpace())
75 return "No file set.";
83 return "File does not exist";
89 private int _LedWizNumber = 99999;
92 public int LedWizNumber
94 get {
return _LedWizNumber; }
97 _LedWizNumber = value;
98 NotifyPropertyChanged(
"LedWizNumber");
103 public override string ToString()
105 return "{0} (LedWiz:{1})".Build(Filename,LedWizNumber);
110 this.Filename = Filename;
111 this.LedWizNumber = LedWizNumber;