Ejemplo n.º 1
0
        public override async Task OnSelected(ExplorerTabViewModel previousModel)
        {
            await base.OnSelected(previousModel).ConfigureAwait(true);

            if (string.IsNullOrWhiteSpace(Content))
            {
                Content = MangaReader.Core.Update.VersionHistory.GetHistory();
            }
        }
Ejemplo n.º 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);
                }
            }
        }
Ejemplo n.º 3
0
 public virtual Task OnUnselected(ExplorerTabViewModel newModel)
 {
     return(Task.CompletedTask);
 }
Ejemplo n.º 4
0
 public virtual Task OnSelected(ExplorerTabViewModel previousModel)
 {
     return(Task.CompletedTask);
 }