Exemplo n.º 1
0
        private BirimEv yeniBirimEvEkle(Ev ev)
        {
            BirimEv yenibirim = new BirimEv(ev);

            flowLayoutPanel1.Controls.Add(yenibirim);
            yenibirim.materialFlatButton1.Click += BirimEv_ClickEvent;
            yenibirim.panel6.VisibleChanged     += panel6blurEkranı_VisibleChanged;
            seçimStringGüncelle();
            return(yenibirim);
        }
Exemplo n.º 2
0
 private bool konutFiltreTest(BirimEv ev)
 {
     if (label13.ForeColor == Color.Black)
     {
         return(true);
     }
     if (ev.ev.Tipi.ToString() == comboBox5.SelectedValue.ToString())
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
        private bool sadeceResimFiltreTest(BirimEv ev)
        {
            DosyaIO io = DosyaIO.Oluştur();

            FileInfo[] resim = io.resimList(ev.ev.EmlakNo);


            if ((resim != null && resim.Count() > 0) || (!materialCheckBox5.Checked))
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 4
0
        private bool odaFiltreTest(BirimEv ev)
        {
            if (label6.ForeColor == Color.Black)
            {
                return(true);
            }
            int oda = ev.ev.OdaSayısı;

            if (oda > (int)numericUpDown5.Value && oda < (int)numericUpDown4.Value)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 5
0
        private bool alanFiltreTest(BirimEv ev)
        {
            if (label9.ForeColor == Color.Black)
            {
                return(true);
            }
            int alan = ev.ev.Alan;

            if (alan > (int)numericUpDown6.Value && alan < (int)numericUpDown3.Value)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 6
0
        private bool fiyatFiltreTest(BirimEv ev)
        {
            if (label2.ForeColor == Color.Black)
            {
                return(true);
            }
            int fiyat = ev.ev.FiyatHesapla();

            if (fiyat > (int)numericUpDown1.Value && fiyat < (int)numericUpDown2.Value)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 7
0
 private bool gizliFiltreTest(BirimEv ev)
 {
     if (materialCheckBox6.Checked)
     {
         if (!ev.ev.Aktifmi)
         {
             ev.Visible = true;
         }
         return(true);
     }
     else
     {
         if (ev.ev.Aktifmi)
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 8
0
        private void BirimEv_ClickEvent(object sender, EventArgs e)
        {
            KonutEkle konut            = new KonutEkle(EKLEMETURU.güncelle);
            BirimEv   tıklanmışBirimEv = ((BirimEv)(((Control)sender).Parent.Parent.Parent));

            konut.Ev         = tıklanmışBirimEv.ev;
            konut.Ev.EmlakNo = tıklanmışBirimEv.ev.EmlakNo;
            if (DialogResult.OK == konut.ShowDialog())
            {
                int konum = tıklanmışBirimEv.Parent.Controls.GetChildIndex(tıklanmışBirimEv);

                BirimEv modifiyeTıklanmışBirimEv = yeniBirimEvEkle(konut.Ev);
                tıklanmışBirimEv.Parent.Controls.Remove(tıklanmışBirimEv);
                modifiyeTıklanmışBirimEv.Parent.Controls.SetChildIndex(modifiyeTıklanmışBirimEv, konum);
                DosyaIO io = DosyaIO.Oluştur();
                io.emlakVeriGüncelle(konut.Ev);
                panelOtoSündür();
                seçimStringGüncelle();
            }
        }
Exemplo n.º 9
0
 private bool comboBoxFiltreTest(BirimEv ev)
 {
     if (!(comboBox1.SelectedIndex == -1 || ev.ev.Adres.Il == comboBox1.SelectedValue.ToString()))
     {
         return(false);
     }
     if (!(comboBox2.SelectedIndex == -1 || ev.ev.Adres.Ilçe == comboBox2.SelectedValue.ToString()))
     {
         return(false);
     }
     if (!(comboBox3.SelectedIndex == -1 || ev.ev.Adres.Mahalle == comboBox3.SelectedValue.ToString()))
     {
         return(false);
     }
     if (!(comboBox4.SelectedIndex == -1 || ev.ev.Adres.Sokak == comboBox4.SelectedValue.ToString()))
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 10
0
        private bool durumFiltreTest(BirimEv ev)
        {
            TUR tip = (ev.ev is SatılıkEv) ? TUR.satılık : TUR.kiralık;

            switch (tip)
            {
            case TUR.satılık:
                if (materialCheckBox3.Checked)
                {
                    return(true);
                }
                break;

            case TUR.kiralık:
                if (materialCheckBox4.Checked)
                {
                    return(true);
                }
                break;
            }
            return(false);
        }
Exemplo n.º 11
0
        private bool aramaFiltreTest(BirimEv ev)
        {
            if (materialSingleLineTextField1.Text.Trim() == "")
            {
                return(true);
            }
            string metin = ev.ev.Başlık;

            if (materialCheckBox1.Checked)
            {
                metin += ev.ev.Not;
            }
            metin = metin.ToLower();
            if (metin.Contains(materialSingleLineTextField1.Text.Trim().ToLower()))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 12
0
        private bool tarihFiltreTest(BirimEv ev)
        {
            if (label14.ForeColor == Color.Black)
            {
                return(true);
            }
            int      seçiliRadioNo = int.Parse(panel19.Controls.OfType <RadioButton>().FirstOrDefault(r => r.Checked).Name.ToString().Replace("materialRadioButton", ""));
            DateTime tarih         = DateTime.Now;

            switch (seçiliRadioNo)
            {
            case 1:
                tarih = DateTime.Now.AddHours(-24);
                break;

            case 2:
                tarih = DateTime.Now.AddDays(-3);
                break;

            case 3:
                tarih = DateTime.Now.AddDays(-7);
                break;

            case 4:
                tarih = DateTime.Now.AddDays(-30);
                break;

            case 5:
                tarih = new DateTime(DateTime.Now.Subtract(dateTimePicker1.Value).Ticks);
                break;
            }

            if (ev.ev.YapımTarihi > tarih)
            {
                return(true);
            }
            return(false);
        }