Esempio n. 1
0
 public Map(string name, Size size)
 {
     this.name = name;
     width = size.Width;
     height = size.Height;
     Layer layer = new Layer(size.Width, size.Height, this);
     layerGroups.Add(new SimpleLayerGroup("layer1", layer));
 }
 private static bool SelectLayers(SelectTwoLayersDialog form, ref Layer layer1, ref Layer layer2)
 {
     form.baseListBox.SelectedItem = layer1;
     form.topListBox.SelectedItem = layer2;
     if (form.ShowDialog() == DialogResult.OK) {
         layer1 = (Layer)form.baseListBox.SelectedItem;
         layer2 = (Layer)form.topListBox.SelectedItem;
         return true;
     }
     else return false;
 }
Esempio n. 3
0
 public SimpleLayerGroup(string name, Layer layer)
     : base(name)
 {
     base.layers[0] = layer;
 }
Esempio n. 4
0
 public Ladder(Layer baseLayer, Layer topLayer)
 {
     this.baseLayer = baseLayer;
     this.topLayer = topLayer;
 }
Esempio n. 5
0
 internal Layer CreateNewLayer(string name)
 {
     Layer newLayer = new Layer(width, height, this);
     layerGroups.Add(new SimpleLayerGroup(name, newLayer));
     return newLayer;
 }
 public static bool SelectTwoLayers(Map map, ref Layer layer1, ref Layer layer2)
 {
     using (SelectTwoLayersDialog form = new SelectTwoLayersDialog(false, map)) {
         return SelectLayers(form, ref layer1, ref layer2);
     }
 }