public override async Task OnSelected(ExplorerTabViewModel previousModel)
        {
            await base.OnSelected(previousModel).ConfigureAwait(true);

            if (string.IsNullOrWhiteSpace(Content))
            {
                Content = MangaReader.Core.Update.VersionHistory.GetHistory();
            }
        }
Exemple #2
0
        public override async Task OnUnselected(ExplorerTabViewModel newModel)
        {
            await base.OnUnselected(newModel).ConfigureAwait(true);

            if (!(newModel is SettingTabViewModel))
            {
                foreach (var tab in ExplorerViewModel.Instance.Tabs.OfType <SettingTabViewModel>().Where(t => t.HideTab).ToList())
                {
                    ExplorerViewModel.Instance.Tabs.Remove(tab);
                }
            }
        }
Exemple #3
0
 public virtual Task OnUnselected(ExplorerTabViewModel newModel)
 {
     return(Task.CompletedTask);
 }
Exemple #4
0
 public virtual Task OnSelected(ExplorerTabViewModel previousModel)
 {
     return(Task.CompletedTask);
 }