using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace PictureQuality
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
// обработчик события кнопки для выбора папки
private void btnOpen_Click(object sender, EventArgs e)
{
// показать диалог выбора папки (см. компонент FolderBrowserDialog)
if (fbdOpen.ShowDialog() == DialogResult.OK)
{
// листаем все файлы в выбранной папке
foreach(string File in Directory.GetFiles(fbdOpen.SelectedPath))
{
// показываем имя файла
MessageBox.Show(File);
}
}
}
}
}
0.00 (0%) 0 votes







