Ejemplo n.º 1
0
 public MainViewModel(WebSiteViewModel webSite, FileSiteViewModel fileSite, ObservableCollection<BrowserViewModel> browsers)
 {
     AboutCommand = new RelayCommand(AboutCommandAction);
       SelectAllBrowsersCommand = new RelayCommand(SelectAllBrowsersCommandAction);
       UnselectAllBrowsersCommand = new RelayCommand(UnselectAllBrowsersCommandAction);
       LaunchAllWebSitesCommand = new RelayCommand(LaunchAllWebSitesCommandAction);
       LaunchAllFileSitesCommand = new RelayCommand(LaunchAllFileSitesCommandAction);
       StartAllBrowsersCommand = new RelayCommand(StartAllBrowsersCommandAction);
       LaunchAllBrowserWebsCommand = new RelayCommand(LaunchAllBrowserWebsCommandAction);
       if (webSite == null)
       {
     throw new ArgumentNullException("webSite");
       }
       _webSite = webSite;
       if (fileSite == null)
       {
     throw new ArgumentNullException("fileSite");
       }
       _fileSite = fileSite;
       if (browsers == null)
       {
     throw new ArgumentNullException("browsers");
       }
       _browsers = browsers;
 }
Ejemplo n.º 2
0
 protected WindowBase()
 {
   CloseCommand = new RelayCommand(CloseCommandAction);
   CenterScreenCommand = new RelayCommand(CenterScreenCommandAction);
   DefaultSizeCommand = new RelayCommand(DefaultSizeCommandAction);
 }