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.
70 lines
2.2 KiB
70 lines
2.2 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 photo_sorter
|
|
{
|
|
public partial class form_main : Form
|
|
{
|
|
public form_main()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void btn_open_dir_Click(object sender, EventArgs e)
|
|
{
|
|
if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
|
|
{
|
|
tbox_dest_dir.Text = folderBrowserDialog1.SelectedPath;
|
|
}
|
|
}
|
|
|
|
private void openDirectoryToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
|
|
{
|
|
tbox_source_dir.Text = folderBrowserDialog1.SelectedPath;
|
|
}
|
|
}
|
|
|
|
private void quitApplicationToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
if (MessageBox.Show("Are you sure you want to quit the Photo Sorter application?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
|
{
|
|
this.Close();
|
|
}
|
|
}
|
|
|
|
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
MessageBox.Show("This application is Copyright Skyfall Tech, 2022.\n\nPlease visit https://www.skyfall.tech/ for more information.");
|
|
}
|
|
|
|
private void btn_open_src_dir_Click(object sender, EventArgs e)
|
|
{
|
|
if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
|
|
{
|
|
tbox_source_dir.Text = folderBrowserDialog1.SelectedPath;
|
|
}
|
|
}
|
|
|
|
/*private void Form1_FormClosing(Object sender, FormClosingEventArgs e)
|
|
{
|
|
if (MessageBox.Show("Are you sure you want to quit the Photo Sorter application?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
|
{
|
|
this.Close();
|
|
}
|
|
else
|
|
{
|
|
e.Cancel = true;
|
|
}
|
|
}*/
|
|
}
|
|
}
|