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