Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        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)));
        }
Beispiel #3
0
 public void GetInformationTest()
 {
     DiskInformation info = new DiskInformation();
     info.GetInformation();
 }