Exemple #1
0
 // ------------------------------------------------ BORDER OF FUNCTION ---------------------------------------------------------- //
 private void button_Programs_Click(object sender, EventArgs e)
 {
     label1.Focus();
     if (Directory.Exists(pathProgramFilesFolder))
     {
         var form = new FormPrograms();
         form.ShowDialog();
     }
     else
     {
         MessageBox.Show(pathProgramFilesFolder + textNotFound);
     }
 }
Exemple #2
0
 //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
 private void buttonInstRemPrograms_Click(object sender, EventArgs e)
 {
     label1.Focus();
     if (Directory.Exists(gameFolder + @"_Programs\ProgramFiles"))
     {
         var form = new FormPrograms();
         form.ShowDialog();
         form = null;
     }
     else
     {
         MessageBox.Show(@"_Programs\ProgramFiles" + notFound);
     }
 }