Ejemplo n.º 1
0
        private void Entry_TextChanged(object sender, EventArgs e)
        {
            if (PrayEntry.Text == null || PrayEntry.Text == "")
            {
                return;
            }

            NetProcess.SendMakePray(PrayEntry.Text);

            PrayEntry.Text = "";

            NetProcess.SendPrayList();
        }
Ejemplo n.º 2
0
        void OnTapped(object sender, EventArgs e)
        {
            try
            {
                var sndObject = sender as StackLayout;
                var grid      = this.Parent as Grid;

                switch (sndObject.StyleId)
                {
                case "Notice":
                    LoadView(new NoticeView());
                    break;

                case "Bulletin":
                    Device.OpenUri(new Uri("http://www.antiochi.net/jubo.pdf"));
                    break;

                case "Sermon":
                    Device.OpenUri(new Uri("http://www.antiochi.net"));
                    break;

                case "Community":
                    break;

                case "Lecture":

                    lec1.Content = null;
                    lec1         = null;
                    lec1         = new Lecture();

                    LoadView(lec1);
                    break;

                case "Lecture2":

                    lec2.Content = null;
                    lec2         = null;
                    lec2         = new Lecture2();

                    LoadView(lec2);
                    break;

                case "Chat":
                {
                    if (User.LoginSuccess == false)
                    {
#if GLOBAL
                        if (Device.RuntimePlatform == Device.Android)
                        {
                            DependencyService.Get <Toast>().Show("need to log in");
                        }
#else
                        DependencyService.Get <Toast>().Show("로그인해야 합니다");
#endif
                        var mainpage = (MainPage)Application.Current.MainPage;

                        mainpage.LoadSetting();
                    }
                    else
                    {
                        NetProcess.SendRoomList();
                        LoadView(roompage);
                    }
                    //if(GetCurrentChatView() == null)
                    //    LoadView(roompage);
                    //else
                    //    LoadView(GetCurrentChatView());
                }
                break;

                case "Plan":
                    LoadView(new BibleReadPlan());
                    break;

                case "Worship":
                    //  LoadView(new Hymn());
                    break;

                case "QnA":

                    LoadView(new QnAView());
                    break;

                case "Pray":
                {
                    NetProcess.SendPrayList();
                    LoadView(praypage);
                }
                break;

                case "Bible":
                    LoadView(new BibleView());
                    break;

                case "HomePage":
                    Device.OpenUri(new Uri("http://www.antiochi.net"));
                    break;

                case "Evangelize":
                    Share.RequestAsync(new ShareTextRequest
                    {
                        Text  = "https://youtu.be/Dm89UpFcHVQ",
                        Title = "#전도 컨텐츠"
                    });
                    break;
                }
            }
            catch (Exception)
            {
            }
        }