-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.cs
46 lines (37 loc) · 1.22 KB
/
Form1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System.Diagnostics;
using WindowsTempFilesPurge.Backend.Purger;
using WindowsTempFilesPurge.Frontend.About;
namespace WindowsTempFilesPurge
{
public partial class TempPurgeForm : Form
{
public TempPurgeForm()
{
InitializeComponent();
}
private void TempPurgeForm_Load(object sender, EventArgs e)
{
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
Form aboutForm = new AboutForm();
aboutForm.ShowDialog();
}
private void documentationToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start(new ProcessStartInfo("cmd", $@"/c start https://github.com/TwwcTech/WindowsTempFilesPurge") { CreateNoWindow = true });
}
private void PurgeFilesButton_Click(object sender, EventArgs e)
{
TempFilesPurger purger = new();
purger.PurgeTempFiles(PurgeProgressBar);
if (DownloadsCheckbox.Checked)
{
purger.PurgeFilesInDownloads(PurgeProgressBar);
}
}
private void DownloadsCheckbox_CheckedChanged(object sender, EventArgs e)
{
}
}
}