using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using Misc; namespace Flyad7_WPF { public class DebugAppParam : INotifyPropertyChanged { private string epstr = "192.168.251.10:20006"; public string EPStr { get { return epstr; } set { if (epstr != value) { epstr = value; PropertyChanged.Notify(this, "EPStr"); } } } private bool hastg = false; public bool HasTimeGrid { get { return hastg; } set { if (hastg != value) { hastg = value; PropertyChanged.Notify(this, "HasTimeGrid"); } } } private bool hasGrid = false; public bool HasGrid { get { return hasGrid; } set { if (hasGrid != value) { hasGrid = value; PropertyChanged.Notify(this, "HasGrid"); } } } private bool hasGridAdv = false; public bool HasGridAdv { get { return hasGridAdv; } set { if (hasGridAdv != value) { hasGridAdv = value; PropertyChanged.Notify(this, "HasGridAdv"); } } } private bool hascrc = false; public bool HasCRC { get { return hascrc; } set { if (hascrc != value) { hascrc = value; PropertyChanged.Notify(this, "HasCRC"); } } } private int fb_pos1 = 1000; private int fb_pos2 = 3000; public int FB_Pos1 { get { return fb_pos1; } set { if (fb_pos1 != value) { fb_pos1 = value; PropertyChanged.Notify(this, "FB_Pos1"); } } } public int FB_Pos2 { get { return fb_pos2; } set { if (fb_pos2 != value) { fb_pos2 = value; PropertyChanged.Notify(this, "FB_Pos2"); } } } public UInt32 Velocity; public UInt32 SVelocity; public UInt32 ATime; public UInt32 DTime; public UInt32 HVelocity1; public UInt32 HVelocity2; public int PosLen; public int ADLag; #region INotifyPropertyChanged 成员 public event PropertyChangedEventHandler PropertyChanged; #endregion public void Save() { Misc.SaveToXmlHepler.Save("param.xml", this); } public void Load() { Misc.SaveToXmlHepler.Load("param.xml", this); } } }