Beispiel #1
0
        private void TargetAreaGearsForm_Load(object sender, EventArgs e)
        {
            var gearUsedList = TargetArea.TargetAreaGearsUsed(_targetArea.TargetAreaGuid);

            lvGears.View = View.Details;
            lvGears.Columns.Add("Gear class");
            lvGears.Columns.Add("Variation");
            lvGears.Columns.Add("Number sampled");

            SizeColumns(lvGears);

            foreach (var item in gearUsedList)
            {
                var lvi = lvGears.Items.Add(item.gearClass);
                lvi.SubItems.Add(item.gearVariation);
                lvi.SubItems.Add(item.count.ToString());
                lvi.Tag = item.GearVarGuid;
            }
            SizeColumns(lvGears, false);

            lvGears.FullRowSelect = true;
        }