source: branches/eraser6/Eraser/TaskDataSelectionForm.cs @ 127

Revision 127, 1.1 KB checked in by lowjoel, 7 years ago (diff)

First implementation of the New Task dialogs.

Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Text;
7using System.Windows.Forms;
8
9namespace Eraser
10{
11    public partial class TaskDataSelectionForm : Form
12    {
13        public TaskDataSelectionForm()
14        {
15            InitializeComponent();
16            file.Checked = true;
17        }
18
19        private void data_CheckedChanged(object sender, EventArgs e)
20        {
21            filePath.Enabled = fileBrowse.Enabled = file.Checked;
22            folderPath.Enabled = folderBrowse.Enabled = folderIncludeLbl.Enabled =
23                folderInclude.Enabled = folderExcludeLbl.Enabled = folderExclude.Enabled =
24                folderDelete.Enabled = folder.Checked;
25            unusedDisk.Enabled = unused.Checked;
26        }
27
28        private void fileBrowse_Click(object sender, EventArgs e)
29        {
30            fileDialog.FileName = filePath.Text;
31            if (fileDialog.ShowDialog() == DialogResult.OK)
32                filePath.Text = fileDialog.FileName;
33        }
34
35        private void folderBrowse_Click(object sender, EventArgs e)
36        {
37            folderDialog.SelectedPath = folderPath.Text;
38            if (folderDialog.ShowDialog() == DialogResult.OK)
39                folderPath.Text = folderDialog.SelectedPath;
40        }
41    }
42}
Note: See TracBrowser for help on using the repository browser.