Exemplo n.º 1
0
        public MainWindowViewModel(ICurrentP4k currentP4k,
                                   MainMenuViewModel mainMenu,
                                   CurrentP4kFileSystemViewModel currentP4KFileSystem,
                                   PinnedItemsViewModel selectedItems,
                                   StatusBarViewModel statusBar,
                                   FileViewerCollectionViewModel fileViewers,
                                   OpenP4kFileCommand openP4KFileCommand)
        {
            _currentP4K         = currentP4k;
            _openP4KFileCommand = openP4KFileCommand;

            MainMenu             = mainMenu;
            CurrentP4kFileSystem = currentP4KFileSystem;
            StatusBar            = statusBar;
            FileViewers          = fileViewers;
            SelectedItems        = selectedItems;

            Title = "Scope";

            _currentP4K.Changed += UpdateTitle;
        }
Exemplo n.º 2
0
 public OpenP4kFileMenuItemViewModel(OpenP4kFileCommand command)
 {
     Command = command;
     Label   = "Open...";
 }