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