public static void Main() { #if DEBUG ProgramDll nps = new ProgramDll(); nps.NoPowerShellExecute(); #else try { ProgramDll nps = new ProgramDll(); nps.NoPowerShellExecute(); } catch (Exception e) { MessageBox.Show(e.Message, "NoPowerShell", MessageBoxButtons.OK, MessageBoxIcon.Error); } #endif }
public static void Main() { ProgramDll nps = new ProgramDll(); nps.NoPowerShellExecute(); }