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; }
public void RemoveLayer(Layer layer) { Layers.Remove(layer); }
public void AddLayer(Layer layer) { Layers.Add(layer); }