public VisualStorage(string path) { InitializeComponent(); StorageOccupancy Occupancy = new StorageOccupancy(path); Occupancy.SetVisualAnalyzerValue(); Contentlabel.Content = path; FileNum.Text = Occupancy.NumOfFiles; DirNum.Text = Occupancy.NumOfDirs; }
public VisualStorage(string path) { InitializeComponent(); StorageOccupancy Occupancy = new StorageOccupancy(path); Occupancy.SetVisualAnalyzerValue(); Contentlabel.Content = "CurrentPath : " + path; FileNum.Text = Occupancy.NumOfFiles; DirNum.Text = Occupancy.NumOfDirs; int RowVal = 1; foreach (DirInfo dirinf in Occupancy.FileInf.Values) { /*RowDefinition gridRow = new RowDefinition(); * gridRow.Height = new GridLength(20); * DynamicGrid.RowDefinitions.Add(gridRow);*/ RowVal = GetColumnText(dirinf, RowVal, DynamicGrid); } }