コード例 #1
0
        private void Onayla_Click(object sender, EventArgs e)
        {
            var MinValue = slider.GetSelectedMinValue();
            var MaxValue = slider.GetSelectedMaxValue();

            FILTRELER fILTRELER = new FILTRELER()
            {
                Cinsiyet = SonCinsiyetSecim,
                minAge   = (int)Math.Round(Convert.ToDouble(MinValue), 0),
                maxAge   = (int)Math.Round(Convert.ToDouble(MaxValue), 0)
            };

            if (DataBase.FILTRELER_TEMIZLE())
            {
                if (DataBase.FILTRELER_EKLE(fILTRELER))
                {
                    AlertHelper.AlertGoster("Filtreler kaydedildi.", this.Activity);
                    Geri.PerformClick();
                }
                else
                {
                    AlertHelper.AlertGoster("Bir sorun oluştu.", this.Activity);
                }
            }
            else
            {
                AlertHelper.AlertGoster("Filtreler sorun oluştu.", this.Activity);
            }
        }
コード例 #2
0
ファイル: FiltreVC.cs プロジェクト: MesutFi/Buptis_iOS
        private void OkButon_TouchUpInside(object sender, EventArgs e)
        {
            var MinValue = Math.Round(rangeSlider.LowerValue, 0);
            var MaxValue = Math.Round(rangeSlider.UpperValue, 0);

            maxText.Text = MinValue.ToString() + " - " + MaxValue.ToString();
            FILTRELER fILTRELER = new FILTRELER()
            {
                Cinsiyet = SonCinsiyetSecim,
                minAge   = (int)Math.Round(Convert.ToDouble(MinValue), 0),
                maxAge   = (int)Math.Round(Convert.ToDouble(MaxValue), 0)
            };

            if (DataBase.FILTRELER_TEMIZLE())
            {
                if (DataBase.FILTRELER_EKLE(fILTRELER))
                {
                    //CustomAlert.GetCustomAlert(this, "Filtreler kaydedildi.");
                    this.View.BackgroundColor = UIColor.Clear;
                    Task.Run(delegate()
                    {
                        InvokeOnMainThread(delegate()
                        {
                            SlideVerticaly(FilterTabView, false, true);
                            this.DismissViewController(true, null);
                        });
                    });
                }
                else
                {
                    CustomAlert.GetCustomAlert(this, "Bir sorun oluştu.");
                }
            }
            else
            {
                CustomAlert.GetCustomAlert(this, "Bir sorun oluştu.");
            }
        }