private void Remove_Click(object sender, RoutedEventArgs e) { var i = ListVeiw.SelectedItem as int?; if (i.HasValue) { CollectionList.Remove(i.Value); } }
private bool RemoveCollection() { //todo: change location string path = RetroFE.GetAbsolutePath() + "/Launchers/" + SelectedCollection.Name + ".conf"; if (File.Exists(path)) { File.Delete(path); } CollectionList.Remove(SelectedCollection); return(true); }
void RemoveCollection() { CollectionList.Remove(MainBigSelection as Collection); }