private void button1_Click(object sender, EventArgs e) { Arac KaydolacakArac = new Arac(textPlaka.Text, ftController.fiyatTarifesiById(Convert.ToInt32(((KeyValuePair <string, string>)comboAracTur.SelectedItem).Key)), DateTime.Now.ToString(), "1", atController.aboneTurleriById(Convert.ToInt32(((KeyValuePair <string, string>)comboAboneTur.SelectedItem).Key)), comboParkYer.Text, textAboneKimlik.Text, richTextBox1.Text, (Bitmap)pictureBox1.Image ); if (guncelle == 0) { kayit = KaydolacakArac.aracKaydet(KaydolacakArac); } else { if (KaydolacakArac.Abone_Tur.AboneTurleri_id == -1) { kayit = KaydolacakArac.aracGuncelle(KaydolacakArac); } else { kayit = KaydolacakArac.aracGuncelleTarihsiz(KaydolacakArac); } } aracPlaka = textPlaka.Text; Close(); DialogResult = DialogResult.OK; }
private void sonraKaydet_Click(object sender, EventArgs e) { if (picLicensePlate.Image == null) { picLicensePlate.Image = Properties.Resources.image; } Arac A1 = new Arac(textPlaka.Text, ftController.fiyatTarifesiById(-1), DateTime.Now.ToString(), "1", (Bitmap)picLicensePlate.Image, otopark1.randomParkYeriOlustur(), "-1", "Üyeliksiz Giriş"); girisİslemleri(A1.aracKaydet(A1), textPlaka.Text); }