// ------------------------------------------------ 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); } }
//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// 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); } }