Beispiel #1
0
        private void InviteWindowMessageReceived(Object o, OnChoiceEventArgs e)
        {
            switch (e.Type)
            {
            case OnChoiceEventArgs.GameType.OFFLINE:
                Start();
                break;


            case OnChoiceEventArgs.GameType.EXIT:
                Application.Exit();
                break;
            }
        }
Beispiel #2
0
        private void InviteWindowMessageReceived(Object o, OnChoiceEventArgs e)
        {
            switch (e.Type)
            {
            case OnChoiceEventArgs.ConnectionType.OFFLINE:
                StartLocal();
                break;

            case OnChoiceEventArgs.ConnectionType.SERVER:
                StartServer();
                break;

            case OnChoiceEventArgs.ConnectionType.CLIENT:
                StartClient(e.IP);
                break;

            case OnChoiceEventArgs.ConnectionType.EXIT:
                Application.Exit();
                break;
            }
        }