public SciMagDetailsTabViewModel(MainModel mainModel, IWindowContext parentWindowContext, SciMagArticle article, bool isInModalWindow) : base(mainModel, parentWindowContext, article.Title) { this.article = article; IsInModalWindow = isInModalWindow; DownloadArticleCommand = new Command(DownloadArticle); CloseCommand = new Command(CloseTab); Initialize(); }
public SciMagDetailsWindowViewModel(MainModel mainModel, SciMagArticle article, bool modalWindow) { this.mainModel = mainModel; this.article = article; this.modalWindow = modalWindow; tabViewModel = null; WindowTitle = article.Title; WindowWidth = mainModel.AppSettings.SciMag.DetailsWindow.Width; WindowHeight = mainModel.AppSettings.SciMag.DetailsWindow.Height; WindowClosedCommand = new Command(WindowClosed); }
public static string GetSciMagDownloadUrl(Mirrors.MirrorConfiguration mirror, SciMagArticle article) { return(Replace(mirror.SciMagDownloadUrl, sciMagTransformations, article)); }
private void OpenDetails(SciMagArticle article) { OpenSciMagDetailsRequested?.Invoke(this, new OpenSciMagDetailsEventArgs(article)); }
public OpenSciMagDetailsEventArgs(SciMagArticle sciMagArticle) { SciMagArticle = sciMagArticle; }