Beispiel #1
0
 public frmUpdate(UpdateCheckResult info)
 {
     InitializeComponent();
     UpdateInfo          = info;
     lblMessage.Text     = info.Message;
     btnDownload.Enabled = info.DownloadUrl != String.Empty;
 }
Beispiel #2
0
        public frmUpdate(UpdateCheckResult info)
        {
            InitializeComponent();
            UpdateInfo          = info;
            lblMessage.Text     = info.Message;
            btnDownload.Enabled = info.DownloadUrl != String.Empty;

            this.ClientSize = new Size(lblMessage.Width + 20, lblMessage.Top + lblMessage.Size.Height + panel1.Height + 20);

            btnDownload.Left = this.ClientSize.Width / 2 - btnDownload.Width / 2;
            chkUpdate.Left   = this.ClientSize.Width / 2 - chkUpdate.Width / 2;
        }