示例#1
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            Map = new Map(txtName.Text, (int) nudMapWidth.Value, (int) nudMapHeight.Value);

            for (var i = 0; i < 4; i++)
            {
                var layer = new Layer(Map);
                Map.AddLayer(layer);
            }

            DialogResult = DialogResult.OK;
        }
示例#2
0
 public void RemoveLayer(Layer layer)
 {
     Layers.Remove(layer);
 }
示例#3
0
 public void AddLayer(Layer layer)
 {
     Layers.Add(layer);
 }