public void ProcessPath(UpdateModel model) { if (model == null) { return; } LoadAndTransferRecords(model.Path); UpdateTeamsAndEvent(model.Path); }
public void CheckForRecordData() { CheckedPaths.Clear(); foreach (string drive in Util.GetAllUsbDrivePaths()) { UpdateModel added = new UpdateModel() { Path = drive }; added.IsSelected = ScoutingJson.HasRecordInFolder(drive); CheckedPaths.Add(added); } OnPropertyChanged("CheckedPaths"); SelectedPathModel = CheckedPaths.FirstOrDefault((um) => um.IsSelected); }