static void Main(string[] args) { string r, w; try { r = args[0]; w = args[1]; TestExec exec = new TestExec(); exec.startServer(); exec.startWpfClient(r, w); } catch (Exception) { } }