Esempio n. 1
0
 private void UpdateDestinationTiles()
 {
     DestinationTileList.Images = new List <Bitmap>(SourceTileList.Images);
     foreach (KeyValuePair <int, int> item in TileMap)
     {
         DestinationTileList.Images[item.Value] = SourceTileList.Images[item.Key];
     }
     DestinationTileList.Images[(int)DestinationTile.Value] = SourceTileList.Images[(int)SourceTile.Value];
     DestinationTileList.ChangeSize();
 }
Esempio n. 2
0
 public TextureRemappingDialog(IList <BMPInfo> images)
 {
     InitializeComponent();
     TextureMap = new Dictionary <int, int>();
     imageList1.Images.AddRange(images.Select(a => a.Image).ToArray());
     SourceTileList.BeginUpdate();
     DestinationTileList.BeginUpdate();
     for (int i = 0; i < images.Count; i++)
     {
         SourceTileList.Items.Add(images[i].Name, i);
         DestinationTileList.Items.Add(images[i].Name, i);
     }
     SourceTileList.EndUpdate();
     DestinationTileList.EndUpdate();
 }