| Revision 127,
1.1 KB
checked in by lowjoel, 5 years ago
(diff) |
|
First implementation of the New Task dialogs.
|
| Line | |
|---|
| 1 | using System; |
|---|
| 2 | using System.Collections.Generic; |
|---|
| 3 | using System.ComponentModel; |
|---|
| 4 | using System.Data; |
|---|
| 5 | using System.Drawing; |
|---|
| 6 | using System.Text; |
|---|
| 7 | using System.Windows.Forms; |
|---|
| 8 | |
|---|
| 9 | namespace 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.