public SaleControl() { try { this.InitializeComponent(); this.allItemsListGridUtils = new AllItemsListGridUtils(this.AllSteamItemsGridView); PriceLoader.Init(this.AllSteamItemsGridView, ETableToLoad.AllItemsTable); PriceLoader.Init(this.ItemsToSaleGridView, ETableToLoad.ItemsToSaleTable); this.InventoryAppIdComboBox.Text = SavedSettings.Get().MarketInventoryAppId; this.InventoryContextIdComboBox.Text = SavedSettings.Get().MarketInventoryContexId; } catch (Exception ex) { Logger.Critical(ex); } }
public TradeSendControl() { try { this.InitializeComponent(); this.allItemsListGridUtils = new AllItemsListGridUtils(this.AllSteamItemsToTradeGridView); var settings = SavedSettings.Get(); this.InventoryAppIdComboBox.Text = settings.TradeInventoryAppId; this.InventoryContextIdComboBox.Text = settings.TradeInventoryContexId; this.TradeParthenIdTextBox.Text = settings.TradePartnerId; this.TradeTokenTextBox.Text = settings.TradeToken; this.LoadSavedAccountToSendTargetComboBox(); } catch (Exception ex) { Logger.Critical(ex); } }
public static void Init(DataGridView table, ETableToLoad tableToLoad) { switch (tableToLoad) { case ETableToLoad.AllItemsTable: allItemsGrid = table; allItemsListGridUtils = new AllItemsListGridUtils(table); break; case ETableToLoad.ItemsToSaleTable: itemsToSaleGrid = table; break; case ETableToLoad.RelistTable: relistGridView = table; break; default: throw new ArgumentOutOfRangeException(nameof(tableToLoad), tableToLoad, null); } }