Beispiel #1
0
 //requires: nothing
 //effects: triggers DeleteLayer of the CompositeModel
 void OnDeleteCallback()
 {
     if (_listView.Selected >= 0)
     {
         _model.DeleteLayer(_listView.Selected);
     }
 }
Beispiel #2
0
 public void DeleteAccessory(object deleteLayerButton, EventArgs args)
 {
     _model.DeleteLayer(_listView.Selected);
     if (_model.NumLayers > 0)
     {
         _listView.Selected = 0;
     }
     else
     {
         _listView.Selected = -1;
     }
 }
Beispiel #3
0
 static void btn_click(object obj, EventArgs args)
 {
     //Console.WriteLine ("Button Clicked");
     _cm.DeleteLayer(_list.Selected);
 }