public DiskInfoModel() { DiskInfo = new ObservableCollection<string>(); DiskInformation info = new DiskInformation(); List<Tuple<string, string>> res = info.GetInformation(); foreach (Tuple<string, string> tuple in res) { DiskInfo.Add(tuple.Item1 + ": " + tuple.Item2); } }
public OptionsModel() { DiskInformation info = new DiskInformation(); AvailableDisks = new ObservableCollection<string>(info.GetLocalDisks()); AvailableFileSizes = new ObservableCollection<string>(); foreach (string fileSizeName in Enum.GetNames(typeof(FileSize))) { AvailableFileSizes.Add(fileSizeName); } AvailableAttemptAmounts = new ObservableCollection<string>(Enumerable.Range(1, 5).Select(p => p.ToString(CultureInfo.InvariantCulture))); }
public void GetInformationTest() { DiskInformation info = new DiskInformation(); info.GetInformation(); }