예제 #1
0
        void HostCommand(MainController mc)
        {
            JoinEventClass joinEvent = new JoinEventClass(mc.RequestCreateEvent("Test"));

            if (joinEvent.EventResult.ToString() == "SUCCESS")
            {
                mc.RequestEventPermissions(permissions);
                Navigation.PopAsync();
                Navigation.PushAsync(new JoinedEvent(mc));
            }
        }
예제 #2
0
        void JoinCommand(commandClass cClass)
        {
            JoinEventClass joinEvent = new JoinEventClass(cClass.mc.RequestJoinEvent(eventIDEntry.Text));

            Debug.WriteLine("cClass.name = \'" + cClass.name + "\'\n");
            if (joinEvent.EventResult.ToString() == "SUCCESS")
            {
                Navigation.PopAsync();
                Navigation.PushAsync(new JoinedEvent(cClass.mc));
            }
            else
            {
                Debug.WriteLine("Couldn't join event successfully: " + joinEvent.EventResult.ToString());
            }
        }