private async void OnTheme(bool returnCharm) { try { await Frontend.RunAsync(() => { if (CleanPaneState()) { CurrentFlyout = new Flyout.Flyout(FlyoutType.ThemeEdit, null, null, returnCharm); } }); } catch (Exception uiEx) { Frontend.UIError(uiEx); } }
//---------------------------------------------------- private async void OnAddContact(object sender, RoutedEventArgs e) { try { await Frontend.RunAsync(() => { if (CleanPaneState()) { CurrentFlyout = new Flyout.Flyout(FlyoutType.AddContact); } }); } catch (Exception uiEx) { Frontend.UIError(uiEx); } }
private async void Events_OnSubscriptionContactSelected(object sender, Frontend.ContactSelectedEventArgs e) { try { await Frontend.RunAsync(() => { if (CleanPaneState()) { CurrentFlyout = new Flyout.Flyout(FlyoutType.Subscription, e.Contact); } }); } catch (Exception uiEx) { Frontend.UIError(uiEx); } }
private async void OpenNotifications(object sender, RoutedEventArgs e) { try { await Frontend.RunAsync(() => { if (CleanPaneState()) CurrentFlyout = new Flyout.Flyout(FlyoutType.Notifications); }); } catch (Exception uiEx) { Frontend.UIError(uiEx); } }
private async void OnAccounts(bool returnCharm) { try { await Frontend.RunAsync(() => { if (CleanPaneState()) CurrentFlyout = new Flyout.Flyout(FlyoutType.AccountListEdit, null, null, returnCharm); }); } catch (Exception uiEx) { Frontend.UIError(uiEx); } }
private async void OnContactInfo(object sender, RoutedEventArgs e) { try { await Frontend.RunAsync(() => { if (SelectedContact != null) { if (CleanPaneState()) CurrentFlyout = new Flyout.Flyout(FlyoutType.EditContact, SelectedContact); } }); } catch (Exception uiEx) { Frontend.UIError(uiEx); } }
private async void Events_OnSubscriptionContactSelected(object sender, Frontend.ContactSelectedEventArgs e) { try { await Frontend.RunAsync(() => { if (CleanPaneState()) CurrentFlyout = new Flyout.Flyout(FlyoutType.Subscription, e.Contact); }); } catch (Exception uiEx) { Frontend.UIError(uiEx); } }