예제 #1
0
 async void OnSettingsCommand(IUICommand command)
 {
     SettingsCommand settingsCommand = (SettingsCommand)command;
     switch(command.Id.ToString())
     {
         case "about":
             var about = new SettingsFlyout();
             about.ShowFlyout(new About());
             break;
         case "privacyPolicy":
             await Launcher.LaunchUriAsync(new Uri("http://sugges.me/privacy.aspx"));
             break;
     }
 }
예제 #2
0
 private void btnAdd_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     this.bottomAppBar.IsOpen = false;
     var trips = new SettingsFlyout();
     trips.ShowFlyout(new ManageTrip());
 }
예제 #3
0
 private void itemListView_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (((ItemViewModel)e.ClickedItem).Identifier != -1)
     {
         this.bottomAppBar.IsOpen = false;
         var trips = new SettingsFlyout();
         trips.ShowFlyout(new ManageItem((ItemViewModel)e.ClickedItem));
     }
 }