public DownloadModsPage() { InitializeComponent(); ViewModel = IoC.GetConstant <DownloadModsViewModel>(); this.AnimateInStarted += TryGetSearchResults; }
/* Create & Dispose */ public DownloadModCommand() { try { _downloadModsViewModel = IoC.Get <DownloadModsViewModel>(); _manageModsViewModel = IoC.Get <ManageModsViewModel>(); _downloadModsViewModel.PropertyChanged += DownloadModsPropertyChanged; _manageModsViewModel.Mods.CollectionChanged += ModsOnCollectionChanged; } catch (Exception) { // Probably no internet } }
/* Create & Dispose */ public DownloadModCommand(DownloadModsViewModel downloadModsViewModel) { try { _downloadModsViewModel = downloadModsViewModel; _modConfigService = IoC.Get <ModConfigService>(); _downloadModsViewModel.PropertyChanged += OnSelectedModChanged; _modConfigService.Mods.CollectionChanged += ModsOnCollectionChanged; } catch (Exception) { // Probably no internet } }
public DownloadModsPage() { InitializeComponent(); ViewModel = IoC.GetConstant <DownloadModsViewModel>(); this.AnimateOutStarted += Dispose; }
public DownloadModsPage() { InitializeComponent(); ViewModel = IoC.GetConstant <DownloadModsViewModel>(); }