public static void showWindow() { RunAsAdmin test = new RunAsAdmin(); test.Show(); test.Activate(); test.Refresh(); }
public static void EndProcessAdmin() { RunAsAdmin.showWindow(); Thread.Sleep(5000); Process[] prs = Process.GetProcessesByName("wire"); foreach (Process pr in prs) { pr.Kill(); } }