コード例 #1
0
        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();
                }
            }
        }
コード例 #2
0
 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();
         }
     }
 }
コード例 #3
0
 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();
         }
     }
 }