Skip to content

Instantly share code, notes, and snippets.

@ScottLilly
Last active August 17, 2017 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScottLilly/460c51d8b4b637d27b7d1e5f456e129b to your computer and use it in GitHub Desktop.
Save ScottLilly/460c51d8b4b637d27b7d1e5f456e129b to your computer and use it in GitHub Desktop.
Lesson 26.1 Displaying a World Map
using System;
using System.ComponentModel;
using System.Linq;
using System.Windows.Forms;
using System.IO;
using Engine;
namespace SuperAdventure
{
public partial class SuperAdventure : Form
{
private const string PLAYER_DATA_FILE_NAME = "PlayerData.xml";
private Player _player;
public SuperAdventure()
{
InitializeComponent();
//_player = PlayerDataMapper.CreateFromDatabase();
if(_player == null)
{
if(File.Exists(PLAYER_DATA_FILE_NAME))
{
_player = Player.CreatePlayerFromXmlString(File.ReadAllText(PLAYER_DATA_FILE_NAME));
}
else
{
_player = Player.CreateDefaultPlayer();
}
}
_player.AddItemToInventory(World.ItemByID(World.ITEM_ID_CLUB));
lblHitPoints.DataBindings.Add("Text", _player, "CurrentHitPoints");
lblGold.DataBindings.Add("Text", _player, "Gold");
lblExperience.DataBindings.Add("Text", _player, "ExperiencePoints");
lblLevel.DataBindings.Add("Text", _player, "Level");
dgvInventory.RowHeadersVisible = false;
dgvInventory.AutoGenerateColumns = false;
dgvInventory.DataSource = _player.Inventory;
dgvInventory.Columns.Add(new DataGridViewTextBoxColumn
{
HeaderText = "Name",
Width = 197,
DataPropertyName = "Description"
});
dgvInventory.Columns.Add(new DataGridViewTextBoxColumn
{
HeaderText = "Quantity",
DataPropertyName = "Quantity"
});
dgvInventory.ScrollBars = ScrollBars.Vertical;
dgvQuests.RowHeadersVisible = false;
dgvQuests.AutoGenerateColumns = false;
dgvQuests.DataSource = _player.Quests;
dgvQuests.Columns.Add(new DataGridViewTextBoxColumn
{
HeaderText = "Name",
Width = 197,
DataPropertyName = "Name"
});
dgvQuests.Columns.Add(new DataGridViewTextBoxColumn
{
HeaderText = "Done?",
DataPropertyName = "IsCompleted"
});
cboWeapons.DataSource = _player.Weapons;
cboWeapons.DisplayMember = "Name";
cboWeapons.ValueMember = "Id";
if(_player.CurrentWeapon != null)
{
cboWeapons.SelectedItem = _player.CurrentWeapon;
}
cboWeapons.SelectedIndexChanged += cboWeapons_SelectedIndexChanged;
cboPotions.DataSource = _player.Potions;
cboPotions.DisplayMember = "Name";
cboPotions.ValueMember = "Id";
_player.PropertyChanged += PlayerOnPropertyChanged;
_player.OnMessage += DisplayMessage;
_player.MoveTo(_player.CurrentLocation);
}
private void DisplayMessage(object sender, MessageEventArgs messageEventArgs)
{
rtbMessages.Text += messageEventArgs.Message + Environment.NewLine;
if(messageEventArgs.AddExtraNewLine)
{
rtbMessages.Text += Environment.NewLine;
}
rtbMessages.SelectionStart = rtbMessages.Text.Length;
rtbMessages.ScrollToCaret();
}
private void PlayerOnPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
{
if(propertyChangedEventArgs.PropertyName == "Weapons")
{
cboWeapons.DataSource = _player.Weapons;
if(!_player.Weapons.Any())
{
cboWeapons.Visible = false;
btnUseWeapon.Visible = false;
}
}
if(propertyChangedEventArgs.PropertyName == "Potions")
{
cboPotions.DataSource = _player.Potions;
if(!_player.Potions.Any())
{
cboPotions.Visible = false;
btnUsePotion.Visible = false;
}
}
if(propertyChangedEventArgs.PropertyName == "CurrentLocation")
{
// Show/hide available movement buttons
btnNorth.Visible = (_player.CurrentLocation.LocationToNorth != null);
btnEast.Visible = (_player.CurrentLocation.LocationToEast != null);
btnSouth.Visible = (_player.CurrentLocation.LocationToSouth != null);
btnWest.Visible = (_player.CurrentLocation.LocationToWest != null);
btnTrade.Visible = (_player.CurrentLocation.VendorWorkingHere != null);
// Display current location name and description
rtbLocation.Text = _player.CurrentLocation.Name + Environment.NewLine;
rtbLocation.Text += _player.CurrentLocation.Description + Environment.NewLine;
if(!_player.CurrentLocation.HasAMonster)
{
cboWeapons.Visible = false;
cboPotions.Visible = false;
btnUseWeapon.Visible = false;
btnUsePotion.Visible = false;
}
else
{
cboWeapons.Visible = _player.Weapons.Any();
cboPotions.Visible = _player.Potions.Any();
btnUseWeapon.Visible = _player.Weapons.Any();
btnUsePotion.Visible = _player.Potions.Any();
}
}
}
private void btnNorth_Click(object sender, EventArgs e)
{
_player.MoveNorth();
}
private void btnEast_Click(object sender, EventArgs e)
{
_player.MoveEast();
}
private void btnSouth_Click(object sender, EventArgs e)
{
_player.MoveSouth();
}
private void btnWest_Click(object sender, EventArgs e)
{
_player.MoveWest();
}
private void btnUseWeapon_Click(object sender, EventArgs e)
{
// Get the currently selected weapon from the cboWeapons ComboBox
Weapon currentWeapon = (Weapon)cboWeapons.SelectedItem;
_player.UseWeapon(currentWeapon);
}
private void btnUsePotion_Click(object sender, EventArgs e)
{
// Get the currently selected potion from the combobox
HealingPotion potion = (HealingPotion)cboPotions.SelectedItem;
_player.UsePotion(potion);
}
private void SuperAdventure_FormClosing(object sender, FormClosingEventArgs e)
{
File.WriteAllText(PLAYER_DATA_FILE_NAME, _player.ToXmlString());
//PlayerDataMapper.SaveToDatabase(_player);
}
private void cboWeapons_SelectedIndexChanged(object sender, EventArgs e)
{
_player.CurrentWeapon = (Weapon)cboWeapons.SelectedItem;
}
private void btnTrade_Click(object sender, EventArgs e)
{
TradingScreen tradingScreen = new TradingScreen(_player);
tradingScreen.StartPosition = FormStartPosition.CenterParent;
tradingScreen.ShowDialog(this);
}
private void btnMap_Click(object sender, EventArgs e)
{
WorldMap mapScreen = new WorldMap();
mapScreen.StartPosition = FormStartPosition.CenterParent;
mapScreen.ShowDialog(this);
}
}
}
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace SuperAdventure
{
public partial class WorldMap : Form
{
readonly Assembly _thisAssembly = Assembly.GetExecutingAssembly();
public WorldMap()
{
InitializeComponent();
SetImage(pic_0_2, "HerbalistsGarden");
SetImage(pic_1_2, "HerbalistsHut");
SetImage(pic_2_0, "FarmFields");
SetImage(pic_2_1, "Farmhouse");
SetImage(pic_2_2, "TownSquare");
SetImage(pic_2_3, "TownGate");
SetImage(pic_2_4, "Bridge");
SetImage(pic_2_5, "SpiderForest");
SetImage(pic_3_2, "Home");
}
private void SetImage(PictureBox pictureBox, string imageName)
{
using (Stream resourceStream =
_thisAssembly.GetManifestResourceStream(
_thisAssembly.GetName().Name + ".Images." + imageName + ".png"))
{
if (resourceStream != null)
{
pictureBox.Image = new Bitmap(resourceStream);
}
}
}
}
}
namespace SuperAdventure
{
partial class WorldMap
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.pic_0_0 = new System.Windows.Forms.PictureBox();
this.pic_0_1 = new System.Windows.Forms.PictureBox();
this.pic_0_2 = new System.Windows.Forms.PictureBox();
this.pic_0_3 = new System.Windows.Forms.PictureBox();
this.pic_0_4 = new System.Windows.Forms.PictureBox();
this.pic_1_0 = new System.Windows.Forms.PictureBox();
this.pic_1_1 = new System.Windows.Forms.PictureBox();
this.pic_1_2 = new System.Windows.Forms.PictureBox();
this.pic_1_3 = new System.Windows.Forms.PictureBox();
this.pic_1_4 = new System.Windows.Forms.PictureBox();
this.pic_2_0 = new System.Windows.Forms.PictureBox();
this.pic_2_1 = new System.Windows.Forms.PictureBox();
this.pic_2_2 = new System.Windows.Forms.PictureBox();
this.pic_2_3 = new System.Windows.Forms.PictureBox();
this.pic_2_4 = new System.Windows.Forms.PictureBox();
this.pic_3_0 = new System.Windows.Forms.PictureBox();
this.pic_3_1 = new System.Windows.Forms.PictureBox();
this.pic_3_2 = new System.Windows.Forms.PictureBox();
this.pic_3_3 = new System.Windows.Forms.PictureBox();
this.pic_3_4 = new System.Windows.Forms.PictureBox();
this.pic_0_5 = new System.Windows.Forms.PictureBox();
this.pic_1_5 = new System.Windows.Forms.PictureBox();
this.pic_2_5 = new System.Windows.Forms.PictureBox();
this.pic_3_5 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pic_0_0)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_0)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_0)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_0)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_5)).BeginInit();
this.SuspendLayout();
//
// pic_0_0
//
this.pic_0_0.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_0_0.Location = new System.Drawing.Point(0, 1);
this.pic_0_0.Name = "pic_0_0";
this.pic_0_0.Size = new System.Drawing.Size(75, 75);
this.pic_0_0.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_0_0.TabIndex = 0;
this.pic_0_0.TabStop = false;
//
// pic_0_1
//
this.pic_0_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_0_1.Location = new System.Drawing.Point(81, 1);
this.pic_0_1.Name = "pic_0_1";
this.pic_0_1.Size = new System.Drawing.Size(75, 75);
this.pic_0_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_0_1.TabIndex = 1;
this.pic_0_1.TabStop = false;
//
// pic_0_2
//
this.pic_0_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_0_2.Location = new System.Drawing.Point(162, 1);
this.pic_0_2.Name = "pic_0_2";
this.pic_0_2.Size = new System.Drawing.Size(75, 75);
this.pic_0_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_0_2.TabIndex = 2;
this.pic_0_2.TabStop = false;
//
// pic_0_3
//
this.pic_0_3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_0_3.Location = new System.Drawing.Point(243, 1);
this.pic_0_3.Name = "pic_0_3";
this.pic_0_3.Size = new System.Drawing.Size(75, 75);
this.pic_0_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_0_3.TabIndex = 3;
this.pic_0_3.TabStop = false;
//
// pic_0_4
//
this.pic_0_4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_0_4.Location = new System.Drawing.Point(324, 1);
this.pic_0_4.Name = "pic_0_4";
this.pic_0_4.Size = new System.Drawing.Size(75, 75);
this.pic_0_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_0_4.TabIndex = 4;
this.pic_0_4.TabStop = false;
//
// pic_1_0
//
this.pic_1_0.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_1_0.Location = new System.Drawing.Point(0, 82);
this.pic_1_0.Name = "pic_1_0";
this.pic_1_0.Size = new System.Drawing.Size(75, 75);
this.pic_1_0.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_1_0.TabIndex = 5;
this.pic_1_0.TabStop = false;
//
// pic_1_1
//
this.pic_1_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_1_1.Location = new System.Drawing.Point(81, 82);
this.pic_1_1.Name = "pic_1_1";
this.pic_1_1.Size = new System.Drawing.Size(75, 75);
this.pic_1_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_1_1.TabIndex = 6;
this.pic_1_1.TabStop = false;
//
// pic_1_2
//
this.pic_1_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_1_2.Location = new System.Drawing.Point(162, 82);
this.pic_1_2.Name = "pic_1_2";
this.pic_1_2.Size = new System.Drawing.Size(75, 75);
this.pic_1_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_1_2.TabIndex = 7;
this.pic_1_2.TabStop = false;
//
// pic_1_3
//
this.pic_1_3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_1_3.Location = new System.Drawing.Point(243, 82);
this.pic_1_3.Name = "pic_1_3";
this.pic_1_3.Size = new System.Drawing.Size(75, 75);
this.pic_1_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_1_3.TabIndex = 8;
this.pic_1_3.TabStop = false;
//
// pic_1_4
//
this.pic_1_4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_1_4.Location = new System.Drawing.Point(324, 82);
this.pic_1_4.Name = "pic_1_4";
this.pic_1_4.Size = new System.Drawing.Size(75, 75);
this.pic_1_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_1_4.TabIndex = 9;
this.pic_1_4.TabStop = false;
//
// pic_2_0
//
this.pic_2_0.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_2_0.Location = new System.Drawing.Point(0, 163);
this.pic_2_0.Name = "pic_2_0";
this.pic_2_0.Size = new System.Drawing.Size(75, 75);
this.pic_2_0.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_2_0.TabIndex = 10;
this.pic_2_0.TabStop = false;
//
// pic_2_1
//
this.pic_2_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_2_1.Location = new System.Drawing.Point(81, 163);
this.pic_2_1.Name = "pic_2_1";
this.pic_2_1.Size = new System.Drawing.Size(75, 75);
this.pic_2_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_2_1.TabIndex = 11;
this.pic_2_1.TabStop = false;
//
// pic_2_2
//
this.pic_2_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_2_2.Location = new System.Drawing.Point(162, 163);
this.pic_2_2.Name = "pic_2_2";
this.pic_2_2.Size = new System.Drawing.Size(75, 75);
this.pic_2_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_2_2.TabIndex = 12;
this.pic_2_2.TabStop = false;
//
// pic_2_3
//
this.pic_2_3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_2_3.Location = new System.Drawing.Point(243, 163);
this.pic_2_3.Name = "pic_2_3";
this.pic_2_3.Size = new System.Drawing.Size(75, 75);
this.pic_2_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_2_3.TabIndex = 13;
this.pic_2_3.TabStop = false;
//
// pic_2_4
//
this.pic_2_4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_2_4.Location = new System.Drawing.Point(324, 163);
this.pic_2_4.Name = "pic_2_4";
this.pic_2_4.Size = new System.Drawing.Size(75, 75);
this.pic_2_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_2_4.TabIndex = 14;
this.pic_2_4.TabStop = false;
//
// pic_3_0
//
this.pic_3_0.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_3_0.Location = new System.Drawing.Point(0, 244);
this.pic_3_0.Name = "pic_3_0";
this.pic_3_0.Size = new System.Drawing.Size(75, 75);
this.pic_3_0.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_3_0.TabIndex = 15;
this.pic_3_0.TabStop = false;
//
// pic_3_1
//
this.pic_3_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_3_1.Location = new System.Drawing.Point(81, 244);
this.pic_3_1.Name = "pic_3_1";
this.pic_3_1.Size = new System.Drawing.Size(75, 75);
this.pic_3_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_3_1.TabIndex = 16;
this.pic_3_1.TabStop = false;
//
// pic_3_2
//
this.pic_3_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_3_2.Location = new System.Drawing.Point(162, 244);
this.pic_3_2.Name = "pic_3_2";
this.pic_3_2.Size = new System.Drawing.Size(75, 75);
this.pic_3_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_3_2.TabIndex = 17;
this.pic_3_2.TabStop = false;
//
// pic_3_3
//
this.pic_3_3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_3_3.Location = new System.Drawing.Point(243, 244);
this.pic_3_3.Name = "pic_3_3";
this.pic_3_3.Size = new System.Drawing.Size(75, 75);
this.pic_3_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_3_3.TabIndex = 18;
this.pic_3_3.TabStop = false;
//
// pic_3_4
//
this.pic_3_4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_3_4.Location = new System.Drawing.Point(324, 244);
this.pic_3_4.Name = "pic_3_4";
this.pic_3_4.Size = new System.Drawing.Size(75, 75);
this.pic_3_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_3_4.TabIndex = 19;
this.pic_3_4.TabStop = false;
//
// pic_0_5
//
this.pic_0_5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_0_5.Location = new System.Drawing.Point(405, 1);
this.pic_0_5.Name = "pic_0_5";
this.pic_0_5.Size = new System.Drawing.Size(75, 75);
this.pic_0_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_0_5.TabIndex = 20;
this.pic_0_5.TabStop = false;
//
// pic_1_5
//
this.pic_1_5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_1_5.Location = new System.Drawing.Point(405, 82);
this.pic_1_5.Name = "pic_1_5";
this.pic_1_5.Size = new System.Drawing.Size(75, 75);
this.pic_1_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_1_5.TabIndex = 21;
this.pic_1_5.TabStop = false;
//
// pic_2_5
//
this.pic_2_5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_2_5.Location = new System.Drawing.Point(405, 163);
this.pic_2_5.Name = "pic_2_5";
this.pic_2_5.Size = new System.Drawing.Size(75, 75);
this.pic_2_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_2_5.TabIndex = 22;
this.pic_2_5.TabStop = false;
//
// pic_3_5
//
this.pic_3_5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pic_3_5.Location = new System.Drawing.Point(405, 244);
this.pic_3_5.Name = "pic_3_5";
this.pic_3_5.Size = new System.Drawing.Size(75, 75);
this.pic_3_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pic_3_5.TabIndex = 23;
this.pic_3_5.TabStop = false;
//
// WorldMap
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(485, 322);
this.Controls.Add(this.pic_3_5);
this.Controls.Add(this.pic_2_5);
this.Controls.Add(this.pic_1_5);
this.Controls.Add(this.pic_0_5);
this.Controls.Add(this.pic_3_4);
this.Controls.Add(this.pic_3_3);
this.Controls.Add(this.pic_3_2);
this.Controls.Add(this.pic_3_1);
this.Controls.Add(this.pic_3_0);
this.Controls.Add(this.pic_2_4);
this.Controls.Add(this.pic_2_3);
this.Controls.Add(this.pic_2_2);
this.Controls.Add(this.pic_2_1);
this.Controls.Add(this.pic_2_0);
this.Controls.Add(this.pic_1_4);
this.Controls.Add(this.pic_1_3);
this.Controls.Add(this.pic_1_2);
this.Controls.Add(this.pic_1_1);
this.Controls.Add(this.pic_1_0);
this.Controls.Add(this.pic_0_4);
this.Controls.Add(this.pic_0_3);
this.Controls.Add(this.pic_0_2);
this.Controls.Add(this.pic_0_1);
this.Controls.Add(this.pic_0_0);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "WorldMap";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.Text = "World Map";
((System.ComponentModel.ISupportInitialize)(this.pic_0_0)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_0)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_0)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_0)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_0_5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_1_5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_2_5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pic_3_5)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pic_0_0;
private System.Windows.Forms.PictureBox pic_0_1;
private System.Windows.Forms.PictureBox pic_0_2;
private System.Windows.Forms.PictureBox pic_0_3;
private System.Windows.Forms.PictureBox pic_0_4;
private System.Windows.Forms.PictureBox pic_1_0;
private System.Windows.Forms.PictureBox pic_1_1;
private System.Windows.Forms.PictureBox pic_1_2;
private System.Windows.Forms.PictureBox pic_1_3;
private System.Windows.Forms.PictureBox pic_1_4;
private System.Windows.Forms.PictureBox pic_2_0;
private System.Windows.Forms.PictureBox pic_2_1;
private System.Windows.Forms.PictureBox pic_2_2;
private System.Windows.Forms.PictureBox pic_2_3;
private System.Windows.Forms.PictureBox pic_2_4;
private System.Windows.Forms.PictureBox pic_3_0;
private System.Windows.Forms.PictureBox pic_3_1;
private System.Windows.Forms.PictureBox pic_3_2;
private System.Windows.Forms.PictureBox pic_3_3;
private System.Windows.Forms.PictureBox pic_3_4;
private System.Windows.Forms.PictureBox pic_0_5;
private System.Windows.Forms.PictureBox pic_1_5;
private System.Windows.Forms.PictureBox pic_2_5;
private System.Windows.Forms.PictureBox pic_3_5;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment