示例#1
0
 void delete_MouseButtonClick(Widget source, EventArgs e)
 {
     checkDeleteOnClose = false;
     if (DeleteElement != null)
     {
         DeleteElement.Invoke(element);
     }
     hide();
 }
示例#2
0
 static public void Delete(string element)
 {
     if (_coll.Count > 0)
     {
         if (_coll.Contains(element))
         {
             _coll.Remove(element);
             DeleteElement?.Invoke(element);
         }
     }
 }