public async override void OnSelectItem(ItemMenu item) { base.OnSelectItem(item); Apphelper.HomePage.IsPresented = false; await Task.Delay(250); //等待Master页面收回 switch (item.Id) { case "更改账号": await Apphelper.Logout(); break; case "异常汇总": await Apphelper.HomeTabPage.Navigation. PushAsync(new ExceptionPage(new ExceptionViewModel(item.Id))); break; case "消息设置": await Apphelper.HomeTabPage.Navigation. PushAsync(new MessagaSettingPage()); break; case "时间设置": await Apphelper.HomeTabPage.Navigation. PushAsync(new TimeSettingPage(TimeViewModel)); break; case "站点查询": await Apphelper.HomeTabPage.Navigation. PushAsync(new StationSettingBeforePage(new StationSettingBeforeViewModel("选择站点"))); break; case "通信设置": await Apphelper.HomeTabPage.Navigation. PushAsync(new CommunacationSettingPage(new CommunacationPageViewModel())); break; } }
async void OnLogout(object obj) { await Apphelper.Logout(); }
async void LogOutEvent(object obj) { await Apphelper.Logout(); }