private void DataDumpLog(KFlyCommand cmd, DataDumpViewModel ddvm) { if (ddvm.Running) { ddvm.Data.Push(new KeyValuePair<DateTime,KFlyCommand>(DateTime.Now, cmd)); } }
public DataDumpTab() { InitializeComponent(); var ddvm = new DataDumpViewModel(); this.DataContext = ddvm; Telemetry.Subscribe(KFlyCommandType.All, (KFlyCommand cmd) => { DataDumpLog(cmd, ddvm); }); }