static void Main(string[] args) { switch (args[0]) { case "-s": //slave mode var my_slave = new MySlave(); my_slave.Start(true); break; case "-c": //client mode DealWithCommand(); break; } }
static void Main(string[] args) { switch (args[0]) { case "-s"://slave mode var my_slave = new MySlave(); my_slave.Start(true); break; case "-c"://client mode DealWithCommand(); break; } }