Example #1
0
        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;
 }
Example #3
0
 private void OnStartup(object sender, StartupEventArgs e)
 {
     var dataContext = new ViewModel.Partition();
     var window = new View.MainWindow(dataContext);
     window.Show();
 }