public FirstDataConverter(AirControlList aircontrollist) { this.AirControlList = aircontrollist; this.Timer = new System.Timers.Timer(); this.Timer.Interval = 200; // this.Timer.Elapsed += Timer_Elapsed; }
public ListWindow(object obj, IDataConverterable DataConverter) { InitializeComponent(); if (obj is AirControlList) { this.ACL = obj as AirControlList; this.list.DataContext = this.ACL; } this.DataContext = new ListWindowViewModel(ACL, DataConverter); }
public ListWindowViewModel(AirControlList AirControllist, IDataConverterable DataConver) { this.ListWindowMode = new ListWindowModel(AirControllist, DataConver); this.GetTest = new ListWindowDelegateCommand(); this.Lc = new ListWindowDelegateCommand(); //simple batch command this.SimpleBatchCommand = new ListWindowDelegateCommand(); this.SimpleBatchCommand.ExecuteCommand = new Action <object>(this.ListWindowMode.Simplebatch); // to controller command this.ToControllerCommand = new ListWindowDelegateCommand(); this.ToControllerCommand.ExecuteCommand = new Action <object>(this.ListWindowMode.ToController); //TopView command this.TopViewCommand = new ListWindowDelegateCommand(); this.TopViewCommand.ExecuteCommand = new Action <object>(this.ListWindowMode.TOPView); // multi batch command this.MultiBatchCommand = new ListWindowDelegateCommand(); this.MultiBatchCommand.ExecuteCommand = new Action <object>(this.ListWindowMode.MulitBatch); }
public ListWindowModel(AirControlList aircontrollist, IDataConverterable DataConverter) { this.AirControlList = aircontrollist; this.DataConverter = DataConverter; }