Exemple #1
0
        private void share_Click(object sender, RoutedEventArgs e)
        {
            DataTransferManager.ShowShareUI();
            MenuFlyoutItem click = sender as MenuFlyoutItem;

            if (click != null)
            {
                Models.HelpItem now = click.DataContext as Models.HelpItem;
                if (now != null)
                {
                    Shared_content  = "";
                    Shared_content += now.publisherId + " have a " + now.type + "task" + " whose details are" + now.details + ". And it is worth " + now.commission + " scores.";
                }
            }
        }
Exemple #2
0
 //点击跳转至该Item的ItemInfo页面
 private void helpListViewItemClick(object sender, ItemClickEventArgs e)
 {
     helpItemViewModel.SelectedItem = (Models.HelpItem)(e.ClickedItem);
     currentUers.currentTarget      = helpItemViewModel.SelectedItem.itemId;
     if (InlineHelpItemViewGrid.Visibility == Visibility.Visible)
     {
         Models.HelpItem now = helpItemViewModel.SelectedItem;
         publisher.Text  = now.publisherId;
         title.Text      = now.type;
         location.Text   = now.location;
         time.Text       = now.dateTime;
         commission.Text = now.commission.ToString();
         details.Text    = now.details;
     }
     else
     {
         Frame.Navigate(typeof(ItemInfo), currentUers);
     }
 }
Exemple #3
0
 //点击跳转至该Item的ItemInfo页面
 private void helpListViewItemClick(object sender, ItemClickEventArgs e)
 {
     helpItemViewModel.SelectedItem = (Models.HelpItem)(e.ClickedItem);
     currentUers.currentTarget      = helpItemViewModel.SelectedItem.itemId;
     if (InlineHelpItemViewGrid.Visibility == Visibility.Visible)
     {
         Models.HelpItem now = helpItemViewModel.SelectedItem;
         inline_task_image.ImageSource = new BitmapImage(new Uri("ms-appx:///Assets/ItemType/" + helpItemViewModel.SelectedItem.type + ".png"));
         publisher.Text  = now.publisherId;
         title.Text      = now.type;
         location.Text   = now.location;
         time.Text       = now.dateTime;
         commission.Text = now.commission.ToString();
         details.Text    = now.details;
     }
     else
     {
         Frame.Navigate(typeof(ItemInfo), currentUers);
     }
 }