private void открытьУкраденныеФайлыToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); pc = new pwdcheck(Icon); pc.ShowDialog(); if (pc.DialogResult == DialogResult.OK) { if (pc.ReturnIsTrue()) { this.IsVisibilityChangeAllowed = true; this.Show(); string Dir = "Leaked " + DateTime.Now.ToString("yyyy.MM.dd"); Process Proc = new Process(); Proc.StartInfo.FileName = "explorer"; if (Directory.Exists(Dir)) { Proc.StartInfo.Arguments = Dir; } else { Proc.StartInfo.Arguments = Application.StartupPath; } Proc.Start(); Proc.Close(); } } }
private void показатьОкноToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); pc = new pwdcheck(Icon); pc.ShowDialog(); if (pc.DialogResult == DialogResult.OK) { if (pc.ReturnIsTrue()) { this.IsVisibilityChangeAllowed = true; this.Show(); } } }
private void notifyIcon1_DoubleClick(object sender, EventArgs e) { this.Icon = Properties.Resources.USB_checker; this.Hide(); pc = new pwdcheck(Icon); pc.ShowDialog(); if (pc.DialogResult == DialogResult.OK) { if (pc.ReturnIsTrue()) { this.IsVisibilityChangeAllowed = true; this.Show(); } } }