public void RemoveRegionEventCall(object sender) { RegionEventArgs eventArgs = new RegionEventArgs() { Region = SelectedRegionItem }; RemoveRegionEventHandler?.Invoke(this, eventArgs); if (eventArgs.Success == true) { RegionList.Remove(eventArgs.Region); } }
private void selectedRegion_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var tmp = selectedRegion.SelectedItem as return_getRegionTreeNodeList; _regionList.Remove(tmp); }