예제 #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();
            }
        }
예제 #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);
                }
            }
        }
예제 #3
0
 public virtual Task OnUnselected(ExplorerTabViewModel newModel)
 {
     return(Task.CompletedTask);
 }
예제 #4
0
 public virtual Task OnSelected(ExplorerTabViewModel previousModel)
 {
     return(Task.CompletedTask);
 }