コード例 #1
0
ファイル: GwtMainView.cs プロジェクト: kwiaciuch/GWT
        /// <summary>
        /// Handles the Click event of the itemViewControl control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        void itemViewControl_Click(object sender, System.EventArgs e)
        {
            ItemViewControl ivc = GetParentItemViewControl(sender as Control);

            if (ivc != null)
            {
                ViewModel.SelectedControl = ivc;
                LinksUpdate();
                ShowListingData(ivc);
            }
        }
コード例 #2
0
ファイル: GwtMainView.cs プロジェクト: kwiaciuch/GWT
 /// <summary>
 /// Shows the <see cref="ListingsDTO"/> data return by Gw2Api on both grids.
 /// </summary>
 public void ShowListingData(ItemViewControl itemControl)
 {
     if (itemControl != null && itemControl.ItemDto != null)
     {
         ItemDTO item = itemControl.ItemDto;
         Log.LogDebug("ShowListingData: item Id: {0}", item.Id);
         ShowSellers(item.Listings);
         ShowBuyers(item.Listings);
     }
     else
     {
         Log.LogError("ShowListingData: item is NULL");
     }
 }