refine qrcode form

This commit is contained in:
clowwindy
2014-11-09 03:47:53 +08:00
parent 2585f4d615
commit 165f016a82
3 changed files with 17 additions and 14 deletions
+13 -13
View File
@@ -5,19 +5,19 @@
__QRCODELIB__
</script>
<style>
html, body, table, div {
padding: 0px;
margin: 0 !important;
}
div#qrcode {
margin: 5px !important;
text-align: center;
vertical-align: center;
}
#qrcode {
width:190px;
height:190px;
}
html, body, table, div {
padding: 0px;
margin: 0 !important;
}
div#qrcode {
margin: 5px !important;
text-align: center;
vertical-align: center;
}
#qrcode {
width:190px;
height:190px;
}
table {
width: 100%;
height:100%;
+3 -1
View File
@@ -305,7 +305,9 @@ namespace Shadowsocks.View
private void QRCodeItem_Click(object sender, EventArgs e)
{
new QRCodeForm(controller.GetQRCodeForCurrentServer()).Show();
QRCodeForm qrCodeForm = new QRCodeForm(controller.GetQRCodeForCurrentServer());
qrCodeForm.Icon = this.Icon;
qrCodeForm.Show();
}
}
}
+1
View File
@@ -55,6 +55,7 @@
this.Controls.Add(this.QRCodeWebBrowser);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "QRCodeForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Load += new System.EventHandler(this.QRCodeForm_Load);