示例#1
0
        static void Main(string[] args)
        {
            Console.Out.WriteLine("MIDI Server");
            Console.Out.WriteLine("v1.0, (C) 2013 Roland Schabenberger");
            Console.Out.WriteLine("----------------------------------------------------------------------");

            if (args.Length == 1 && args[0] == "/?")
            {
                Console.Out.WriteLine("Usage: MidiServer [output device id]");
                return;
            }

            new ServiceManager(); // start service manager

            Application app = new Application(args);

            app.start();
            app.run();
            app.stop();
        }
示例#2
0
 private Application(string[] args)
 {
     running = true;
     instance = this;
     this.args = args;
 }