Esempio n. 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);
            }
        }
Esempio n. 2
0
        public void GetInformationTest()
        {
            DiskInformation info = new DiskInformation();

            info.GetInformation();
        }