Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
726 changes: 419 additions & 307 deletions ContextMenuManager/BluePointLilac.Controls/BackupDialog.cs

Large diffs are not rendered by default.

28 changes: 0 additions & 28 deletions ContextMenuManager/BluePointLilac.Controls/ControlExtensions.cs

This file was deleted.

14 changes: 7 additions & 7 deletions ContextMenuManager/BluePointLilac.Controls/DownloadDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public override void Reset() { }

protected override bool RunDialog(IntPtr hwndOwner)
{
using (Process process = Process.GetCurrentProcess())
using (DownloadForm frm = new DownloadForm())
using(Process process = Process.GetCurrentProcess())
using(DownloadForm frm = new DownloadForm())
{
frm.Url = Url;
frm.Text = Text;
Expand Down Expand Up @@ -70,14 +70,14 @@ private void DownloadFile(string url, string filePath)
{
try
{
using (UAWebClient client = new UAWebClient())
using(UAWebClient client = new UAWebClient())
{
client.DownloadProgressChanged += (sender, e) =>
{
int value = e.ProgressPercentage;
Text = $"Downloading: {value}%";
pgbDownload.Value = value;
if (DialogResult == DialogResult.Cancel)
if(DialogResult == DialogResult.Cancel)
{
client.CancelAsync();
File.Delete(FilePath);
Expand All @@ -90,7 +90,7 @@ private void DownloadFile(string url, string filePath)
client.DownloadFileAsync(new Uri(url), filePath);
}
}
catch (Exception e)
catch(Exception e)
{
MessageBox.Show(e.Message, Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
DialogResult = DialogResult.Cancel;
Expand All @@ -99,8 +99,8 @@ private void DownloadFile(string url, string filePath)

protected override void OnLoad(EventArgs e)
{
if (Owner == null && Form.ActiveForm != this) Owner = Form.ActiveForm;
if (Owner == null) StartPosition = FormStartPosition.CenterScreen;
if(Owner == null && Form.ActiveForm != this) Owner = Form.ActiveForm;
if(Owner == null) StartPosition = FormStartPosition.CenterScreen;
else
{
TopMost = true;
Expand Down
2 changes: 1 addition & 1 deletion ContextMenuManager/BluePointLilac.Controls/InputDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public override void Reset() { }

protected override bool RunDialog(IntPtr hwndOwner)
{
using (InputBox frm = new InputBox())
using(InputBox frm = new InputBox())
{
frm.Text = Title;
frm.InputedText = Text;
Expand Down
140 changes: 0 additions & 140 deletions ContextMenuManager/BluePointLilac.Controls/LoadingDialog.Designer.cs

This file was deleted.

Loading