private void Remove_Click(object sender, RoutedEventArgs e)
        {
            var i = ListVeiw.SelectedItem as int?;

            if (i.HasValue)
            {
                CollectionList.Remove(i.Value);
            }
        }
示例#2
0
        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);
        }
示例#3
0
 void RemoveCollection()
 {
     CollectionList.Remove(MainBigSelection as Collection);
 }