예제 #1
0
 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); }
 }
예제 #2
0
        //----------------------------------------------------


        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); }
        }
예제 #3
0
 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); }
 }
예제 #4
0
 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); }
 }
예제 #5
0
 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); }
 }
예제 #6
0
 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); }
 }
예제 #7
0
 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); }
 }