Ejemplo n.º 1
0
        private void InfoBtn_Click(object sender, EventArgs e)
        {
            SelectedItem = StartMenuListDisplay.GetItemText(StartMenuListDisplay.SelectedItem);

            FileInfoPath2 = Directory.GetFiles(@StartMenu.path, "*" + SelectedItem, SearchOption.AllDirectories);

            UpdateInfoText();
        }
Ejemplo n.º 2
0
        private void DeleteBtn_Click(object sender, EventArgs e)
        {
            SelectedItem = StartMenuListDisplay.GetItemText(StartMenuListDisplay.SelectedItem);

            FileInfoPath2 = Directory.GetFiles(@StartMenu.path, "*" + SelectedItem, SearchOption.AllDirectories);

            foreach (string name in FileInfoPath2)
            {
                Console.WriteLine("Deleted = " + name);
                MessageBox.Show("Deleted " + SelectedItem + " Restart the program when done deleting the programs you disire", "Deleted");
                File.Delete(name);
            }
        }
Ejemplo n.º 3
0
 void SetUpTest()
 {
     SelectedItem  = StartMenuListDisplay.GetItemText(StartMenuListDisplay.SelectedItem);
     FileInfoPath2 = Directory.GetFiles(@StartMenu.path, "*" + SelectedItem, SearchOption.AllDirectories);
 }