/*public string LinkGenerator() * { * string linkmaincheck = @"https://fordroid.3dn.ru/pictures/domaincheck.txt"; * string finaldomain = @"https://droidapps.cf"; * string filename = "linkdomain.txt"; * // Объект запроса * HttpWebRequest rew = (HttpWebRequest)WebRequest.Create(linkmaincheck); * * // Отправить запрос и получить ответ * HttpWebResponse resp = (HttpWebResponse)rew.GetResponse(); * * // Получить поток * Stream str = resp.GetResponseStream(); * * // Выводим в TextBox * int ch; * string message = ""; * for (int i = 1; ; i++) * { * ch = str.ReadByte(); * if (ch == -1) break; * message += (char)ch; * } * * // Закрыть поток * str.Close(); * messageBoxCaller(message, "c", MessageBoxButtons.OK, MessageBoxIcon.Error); * return finaldomain; * }*/ private void Form1_Load(object sender, EventArgs e) { checkUpd = new EzShell.CheckUpdates(Application.ProductName, Application.ProductVersion, link + @"/Files/WifiAdbHelper.zip", swMsgDwnld, metroProgressBar1, notificationM, labelADBstatus); mainVars.ipAddress(); textboxIP.Text = SettableVars.ipAd; this.Size = consts.sizeStart; AutoUpdateMet(); Refresher(); ThemeFirst(); NotifyIconPlace(); mainVars.devicePath(); SetTimerInterval(); AutoreconAtStart(); }
private void Form1_Load(object sender, EventArgs e) { panelSettings.Location = new Point(200, 380); labelVer.Text = Application.ProductVersion + " by IronShell"; chkupd = new EzShell.CheckUpdates( Application.ProductName, Application.ProductVersion, "/Files/PicSorter.zip", msgMaker, progss, nfIc, labelStatus); nfIc = new NotifyIcon() { Icon = Properties.Resources.PICSORT1, Text = "Image Sorter by IronShell" }; var chupdt = new Thread(() => { string Ver = chkupd.MsgUpdateAvailable(); if (Ver != null) { nfIc.Visible = true; nfIc.BalloonTipClicked += NfIc_BalloonTipClicked; nfIc.ShowBalloonTip(3000, "Update available " + Ver, "PicSorter by IronShell", ToolTipIcon.Info); Thread.Sleep(5000); nfIc.Visible = false; nfIc.Dispose(); } }) { IsBackground = true }; chupdt.Start(); }