using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using HXX.Scanner.Common; using HXX.Scanner.Biz.Socket; namespace HXX.Scanner.Client.UI.mask { public partial class frmMask : Form { public frmMask(Form main_form, response_http_updateInfo version) { InitializeComponent(); this.main_form = main_form; this.version = version; } public Form main_form; private response_http_updateInfo version; private void frmMask_Load(object sender, EventArgs e) { this.StartPosition = FormStartPosition.Manual; this.Location = main_form.Location; this.Size = main_form.Size; this.TransparencyKey = Color.Gray; //frmMaskContent frm = new frmMaskContent(); //frm.Show(); //frm.BringToFront(); ////frm.Left = this.Left+(this.Width - frm.Width) / 2; //frm.Top =this.Width+ (this.Height = frm.Height) / 2; this.version.data.content = this.version.data.content.Replace("\\r\\n", "\r\n"); this.txtContent.Text = this.version.data.content; } private void but_close_Click(object sender, EventArgs e) { if (MsgManager.Ask("确认退出升级吗?") == DialogResult.Yes) { this.Close(); } } private void button1_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Yes; this.Close(); } } }