private void Form1_Load(object sender, EventArgs e) { string s; using (StreamReader sr = new StreamReader("User.txt")) { s = sr.ReadToEnd(); sr.Close(); } au = new Autorisation(); if (s == "") { au.Show(this); } else { Program.Data.IP = s.Split('/')[0]; Program.Data.Login = s.Split('/')[1]; Program.Data.Password = s.Split('/')[2]; Program.Data.Mail = s.Split('/')[3]; } using (StreamReader sr = new StreamReader("Trust.mac", Encoding.Default)) { s = sr.ReadToEnd(); sr.Close(); } s = gost.Decrypt(s, key); OdobryayuList = s.Split('/').ToList(); OdobryayuList.Remove(""); if (OdobryayuList.Count > 0) { OdobryayuList[OdobryayuList.Count - 1] = OdobryayuList[OdobryayuList.Count - 1].Remove(17); } notifyIcon1.BalloonTipTitle = "Arp-Alert"; notifyIcon1.BalloonTipText = "Arp-Alert минимизирован"; notifyIcon1.Text = "Arp-Alert"; }
private void button3_Click(object sender, EventArgs e) { timer1.Enabled = false; au = new Autorisation(); au.Show(this); }