コード例 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.randevuOnayla_layout);

            txtIl           = FindViewById <TextView>(Resource.Id.txtRandOnayIl);
            txtIlce         = FindViewById <TextView>(Resource.Id.txtRandOnayIlce);
            txtHastane      = FindViewById <TextView>(Resource.Id.txtRandOnayHastane);
            txtBolum        = FindViewById <TextView>(Resource.Id.txtRandOnayBolum);
            txtDoktor       = FindViewById <TextView>(Resource.Id.txtRandOnayDoktor);
            txtTarih        = FindViewById <TextView>(Resource.Id.txtRandOnayTarih);
            btnRandevuOnay  = FindViewById <Button>(Resource.Id.btnRandevuOnay);
            btnRandevuIptal = FindViewById <Button>(Resource.Id.btnRandevuIptal);

            btnRandevuOnay.Click  += BtnRandevuOnay_Click;
            btnRandevuIptal.Click += BtnRandevuIptal_Click;

            hastane       = hastaneService.Getir(Intent.GetIntExtra("hastaneId", 0));
            bolum         = bolumService.Getir(Intent.GetIntExtra("bolumId", 0));
            doktor        = doktorService.Getir(Intent.GetIntExtra("doktorId", 0));
            hasta         = hastaService.Getir(Intent.GetStringExtra("hastaTc"));
            randevuTarihi = Convert.ToDateTime(Intent.GetStringExtra("randevuTarihi"));

            txtIl.Text      = "İl: " + hastane.Il;
            txtIlce.Text    = "İlçe: " + hastane.Ilce;
            txtHastane.Text = "Hastane: " + hastane.Ad;
            txtBolum.Text   = "Bölüm: " + bolum.Ad;
            txtDoktor.Text  = "Doktor: " + doktor.Ad + " " + doktor.Soyad;
            txtTarih.Text   = "Tarih: " + randevuTarihi.ToLongDateString() + " " + randevuTarihi.ToShortTimeString();
        }
コード例 #2
0
        public override View GetView(int position, View convertView, ViewGroup parent)
        {
            View satir = convertView;

            if (satir == null)
            {
                satir = LayoutInflater.From(context).Inflate(Resource.Layout.hastaFavoriDoktorlariItem_layout, null, false);
            }

            TextView txtFavorilerimDoktorAdi = satir.FindViewById <TextView>(Resource.Id.txtFavorilerimDoktorAdi);
            TextView txtFavorilerimBolumAdı  = satir.FindViewById <TextView>(Resource.Id.txtFavorilerimBolumAdi);
            TextView txtFavorilerimDoktorSil = satir.FindViewById <TextView>(Resource.Id.txtFavorilerimDoktorSil);

            txtFavorilerimDoktorSil.PaintFlags = Android.Graphics.PaintFlags.UnderlineText;

            Doktor doktor = doktorService.Getir(favoriler[position].DoktorId);

            if (doktor != null)
            {
                Bolum bolum = bolumService.Getir(doktor.BolumId);

                txtFavorilerimDoktorAdi.Text = doktor.Ad + " " + doktor.Soyad;
                txtFavorilerimBolumAdı.Text  = bolum.Ad;
                txtFavorilerimDoktorSil.Text = "Çıkar";

                txtFavorilerimDoktorSil.Click += (sender, e) => txtFavorilerimDoktorSil_Click(sender, e, favoriler[position]);
            }

            return(satir);
        }
コード例 #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.bolumGuncelle_layout);

            btnBolumGuncelle   = FindViewById <Button>(Resource.Id.btnGuncelleBolumKaydet);
            txtGuncelleBolumAd = FindViewById <EditText>(Resource.Id.txtGuncelleBolumAd);
            bolum     = bolumService.Getir(Intent.GetIntExtra("guncelleBolumId", 0));
            hastaneid = bolum.HastaneId;
            id        = bolum.Id;
            txtGuncelleBolumAd.Text = bolum.Ad;
            btnBolumGuncelle.Click += BtnBolumGuncelle_Click;
        }