Exemplo n.º 1
0
        public void ucShortcut_Click(object sender, EventArgs e)
        {
            if (Psc.isWindowsApp)
            {
                Process p = new Process()
                {
                    StartInfo = new ProcessStartInfo()
                    {
                        UseShellExecute = true, FileName = $@"shell:appsFolder\{Psc.FilePath}"
                    }
                };
                p.Start();
            }
            else
            {
                if (Path.GetExtension(Psc.FilePath).ToLower() == ".lnk" && Psc.FilePath == Paths.exeString)

                {
                    MotherForm.OpenFile(Psc.Arguments, Psc.FilePath, Paths.path);
                }
                else
                {
                    MotherForm.OpenFile(Psc.Arguments, Psc.FilePath, Psc.WorkingDirectory);
                }
            }
        }
Exemplo n.º 2
0
 public void ucShortcut_Click(object sender, EventArgs e)
 {
     MotherForm.OpenFile(sender, e, Psc.FilePath);
 }