Commit a5c81d7c authored by 段廷瑞's avatar 段廷瑞

1、界面微调

parent 571ab331
......@@ -33,10 +33,12 @@
//
// wBasic
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(278, 174);
this.ClientSize = new System.Drawing.Size(324, 213);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "wBasic";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "基础窗口";
......
......@@ -38,7 +38,7 @@ namespace Tools.UI
private void wTaskBoard_Load(object sender, EventArgs e)
{
//初始化数据访问对象
var link = $@"Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=FTT_Work;Data Source=jhdsoft.gicp.net,3204";
var link = Utils.GetDbLinkString204("FTT_Work");
this._db = new DBHelper(link);
//初始化界面
this.dataGridView1.AllowUserToAddRows = false;
......@@ -51,7 +51,7 @@ namespace Tools.UI
this.SetGridForeColor();
//双击查看任务明细初始化
this._html = File.ReadAllText($@"{Utils.TestPath}\TaskDetail.html");
this.frmView = new wBasic() { BackColor = Color.White, Size = new Size(600, 400) };
this.frmView = new wBasic() { BackColor = Color.White, Size = new Size(700, 500) };
this._browser = new WebBrowser() { Parent = this.frmView, Dock = DockStyle.Fill };
this.frmView.FormClosing += FrmView_FormClosing;
//表格事件
......
......@@ -102,8 +102,6 @@ namespace Tools
UserLog.Write("打开系统");
}
private void WMain_FormClosing(object sender, FormClosingEventArgs e)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment