You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace fileFinder
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
public MainForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void dirSelectBtn_Click(object sender, EventArgs e)
|
|
{
|
|
using (var dialog = new FolderBrowserDialog())
|
|
{
|
|
DialogResult result = dialog.ShowDialog();
|
|
if (result == DialogResult.OK && !String.IsNullOrWhiteSpace(dialog.SelectedPath))
|
|
{
|
|
curDirTextBox.Text = dialog.SelectedPath;
|
|
hintHided = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool hintHided = false;
|
|
private void curDirTextBox_Enter(object sender, EventArgs e)
|
|
{
|
|
if (!hintHided)
|
|
{
|
|
hintHided = true;
|
|
curDirTextBox.Text = "";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|