initial form design

This commit is contained in:
icylogic
2015-08-12 22:30:09 +08:00
parent f5a63ef1cf
commit 1e072e5f91
6 changed files with 655 additions and 1 deletions
@@ -165,6 +165,7 @@ namespace Shadowsocks.View
this.SeperatorItem = new MenuItem("-"),
this.ConfigItem = CreateMenuItem("Edit Servers...", new EventHandler(this.Config_Click)),
CreateMenuItem("Show QRCode...", new EventHandler(this.QRCodeItem_Click)),
CreateMenuItem("Statistics Stategy Options", new EventHandler(StatisticsStrategyOptionsItem_Click)),
CreateMenuItem("Scan QRCode from Screen...", new EventHandler(this.ScanQRCodeItem_Click))
}),
CreateMenuGroup("PAC ", new MenuItem[] {
@@ -426,6 +427,14 @@ namespace Shadowsocks.View
qrCodeForm.Show();
}
private static void StatisticsStrategyOptionsItem_Click(object sender, EventArgs e)
{
//TODO: Load options
var statisticsStrategyOptionsForm = new StatisticsStrategyOptionsForm();
statisticsStrategyOptionsForm.Show();
//TODO: Save options
}
private void ScanQRCodeItem_Click(object sender, EventArgs e)
{
foreach (Screen screen in Screen.AllScreens)