コード例 #1
0
        private void UpdateVinylGrid(bool isDecal)
        {
            int count = isDecal ? this.carDataManager.DecalCount : this.carDataManager.VinylCount;
            var grid  = isDecal ? this.decalsGrid : this.vinylsGrid;

            grid.Rows.Clear();
            for (int i = count; i > 0; i--)
            {
                byte code = (byte)this.carDataManager.GetVinylData(i - 1, isDecal, "Code");
                byte page = (byte)this.carDataManager.GetVinylData(i - 1, isDecal, "Page");

                grid.Rows.Add();
                grid.Rows[count - i].Cells[0].Value = VinylHelper.GetImage(code, page);
                grid.Rows[count - i].Cells[1].Value = "Layer " + i;
            }

            grid.ClearSelection();
            grid.Update();
        }
コード例 #2
0
 private void SetVinylImage()
 {
     this.vinylImage.Image = VinylHelper.GetImage(this.code, this.page);
 }