private void UserIdButton_Click(object sender, EventArgs e) { if (!Directory.Exists(UserIdTextBox.Text)) { MessageBox.Show("User is incortect"); } else { CodeFactory.strFolderPath = UserIdTextBox.Text; CodeFactory.GetUserList(EFiltration.FoldersFromUser); UsersForm user = new UsersForm(); user.Show(); } }