コード例 #1
0
        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);
 }