private void OnStartup(object sender, StartupEventArgs e) { var dataContext = new ViewModel.Partition(); var window = new View.MainWindow(dataContext); window.Show(); }
public DirectoryObject(Model.DirectoryObject obj, Partition partition) { _partition = partition; Name = obj.Name; Size = obj.Size; Type = obj.Type == Model.DirectoryObjectType.Directory ? DirectoryObjectType.Directory : DirectoryObjectType.File; }