public YoutubeDownloaderViewModel CreateViewModel(ArgumentCollection args = null) { ArgumentCollection requiredArgs = this.GetRequiredViewModelArgs(); requiredArgs.Set(args); return(base.CreateViewModel <YoutubeDownloaderViewModel>(requiredArgs)); }
public ComputerPerformanceViewModel CreateViewModel(ArgumentCollection args = null) { ArgumentCollection requiredArgs = this.GetRequiredViewModelArgs(); requiredArgs.Set(args); return(base.CreateViewModel <ComputerPerformanceViewModel>(requiredArgs)); }
public ArgumentCollection GetRequiredViewModelArgs() { ArgumentCollection args = new ArgumentCollection(); args.Set(ArgumentCollection.ArgumentType.Downloader, new Downloader()); return(args); }
public static YoutubeDownloaderViewModel InitilizeViewModel() { MockDownloader downloader = new MockDownloader(); ArgumentCollection args = new ArgumentCollection(); args.Set(ArgumentCollection.ArgumentType.Downloader, downloader); return(Common.CreateYoutubeDownloaderViewModel(args) as YoutubeDownloaderViewModel); }