public LogEntryModel(mavlink_log_entry_t entry) { this.entry = entry; }
private static DateTime GetLogTime(mavlink_log_entry_t entry) { return new DateTime(1970, 1, 1).AddSeconds(entry.time_utc).ToLocalTime(); }
private void OnDownloadClick(object sender, RoutedEventArgs e) { var entry = (LogEntryModel)LogFiles.SelectedItem; if (entry != null) { selectedEntry = entry.Entry; RequestLogData(entry.Entry.id, 0, uint.MaxValue); StartProgress(); DownloadStatus.Text = "downloading..."; } }