Beispiel #1
0
 private async void App_UnhandledException(object sender, Windows.UI.Xaml.UnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     string exTitle = UtilityTool.GetStringFromResources("Exception");
     string close   = UtilityTool.GetStringFromResources("Close");
     var    dialog  = new ContentDialog
     {
         PrimaryButtonText = close,
         DefaultButton     = ContentDialogButton.Primary,
         Title             = exTitle,
         Content           = e.Exception.Message
     };
     await dialog.ShowAsync();
 }
Beispiel #2
0
 public MainViewModel()
 {
     Apps = new ObservableCollection <WtApp>
     {
         new WtApp
         {
             Name        = "message",
             DisplayName = UtilityTool.GetStringFromResources("WtAppMessageDisplayName"),
             Icon        = WtIconHelper.GetAppIcon("message")
         }
     };
     SelectedApp = Apps.First();
     Members     = new ObservableCollection <User>();
     Sessions    = new ObservableCollection <Session>();
     Services    = new ObservableCollection <WtService>();
 }