Skip to content

Commit

Permalink
[ux] add some alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinZonda committed Jun 7, 2020
1 parent bf32a08 commit e3edeac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 5 additions & 1 deletion NaiveSharp/MainWindow.cs
Expand Up @@ -136,16 +136,21 @@ private void rdoGeoIP_CheckedChanged(object sender, EventArgs e)
private void lblSave_Click(object sender, EventArgs e)
{
Operation.Save();

MessageBox.Show("Node information saved.", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

private void btnRun_Click(object sender, EventArgs e)
{
Operation.Run();

MessageBox.Show("NaiveProxy runs successfully!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

private void lblStop_Click(object sender, EventArgs e)
{
Operation.Stop();
MessageBox.Show("NaiveProxy stop successfully!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

private void lblExit_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -180,6 +185,5 @@ private void chkPadding_CheckedChanged(object sender, EventArgs e)
Config.Padding = chkPadding.Checked;
}


}
}
5 changes: 2 additions & 3 deletions NaiveSharp/Module/Command.cs
@@ -1,10 +1,9 @@
using System;
using NaiveSharp.ConstText;

using System.Diagnostics;
using System.IO;
using System.Windows.Forms;

using NaiveSharp.ConstText;

namespace NaiveSharp.Module
{
public class Command
Expand Down

0 comments on commit e3edeac

Please sign in to comment.