コード例 #1
0
ファイル: HostEvent.cs プロジェクト: me-next/menext-app
        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());
            }
        }