private void SelectItemsTraded_Load(object sender, EventArgs e)
        {
            txtItemSellPrice.Enabled = false;
            txtDefaultBuyPrice.Enabled = false;
            cmbStation.Enabled = false;
            chkUseReprocessVal.Enabled = false;
            chkForceDefaultBuyPrice.Enabled = false;
            chkForceDefaultSellPrice.Enabled = false;

            EveDataSet.mapRegionsDataTable regions = Regions.GetAllRegions();
            EveDataSet.mapRegionsRow newRow = regions.NewmapRegionsRow();
            newRow.regionID = -1;
            newRow.regionName = "All Regions";
            regions.AddmapRegionsRow(newRow);

            cmbStation.ValueMember = "regionID";
            cmbStation.DisplayMember = "regionName";
            cmbStation.DataSource = regions;
            cmbStation.SelectedValue = -1;
            cmbStation.AutoCompleteSource = AutoCompleteSource.ListItems;
            cmbStation.AutoCompleteMode = AutoCompleteMode.Suggest;

            itemValues = UserAccount.CurrentGroup.ItemValues;
            itemsList = itemValues.GetAllItems();

            lstItems.DisplayMember = "typeName";
            lstItems.ValueMember = "typeID";
            lstItems.DataSource = itemsList;

            chkEveMarketPrices.Checked = (UserAccount.CurrentGroup.Settings.UseEveCentral || UserAccount.CurrentGroup.Settings.UseEveMetrics);
            ReportGroupSettings.EveMarketValueToUse value = UserAccount.CurrentGroup.Settings.EveMarketType;
            rdbMaxBuy.Checked = false;
            rdbMedianBuy.Checked = false;
            switch (value)
            {
                case ReportGroupSettings.EveMarketValueToUse.medianBuy:
                    rdbMedianBuy.Checked = true;
                    break;
                case ReportGroupSettings.EveMarketValueToUse.maxBuy:
                    rdbMaxBuy.Checked = true;
                    break;
                default:
                    break;
            }
            rdbEveCentral.Checked = UserAccount.CurrentGroup.Settings.UseEveCentral;
            rdbEveMetrics.Checked = UserAccount.CurrentGroup.Settings.UseEveMetrics;
            txtDaysBetweenUpdates.Text = UserAccount.CurrentGroup.Settings.ItemValueWebExpiryDays.ToString();
            //RefreshList();
        }
 public ItemValueDetail(int itemID)
 {
     InitializeComponent();
     _defaultItem = itemID;
     _itemValues = UserAccount.CurrentGroup.ItemValues;
 }