public void insert(params object[] _income) { odeme odm = new odeme(); odm.kullaniciId = Convert.ToInt32(_income[0]); odm.odemeTutar = Convert.ToDouble(_income[1]); odm.islemId = Convert.ToInt32(_income[2]); odm.odemeTipId = Convert.ToInt32(_income[3]); if (_income[4].ToString() != "") { odm.kartNo = _income[4].ToString(); } odm.basariliMi = Convert.ToBoolean(_income[5]); idc.odemes.InsertOnSubmit(odm); idc.SubmitChanges(); }
private void comboDoldur() { foreach (odeme o in db.odeme) { comboBox1.Items.Add(o); } if (taburcuOldumu) { int i = 0; foreach (var item in comboBox1.Items) { odeme o = item as odeme; if (o.odemeid == aktifSevk.taburcu.odemeid) { comboBox1.SelectedIndex = i; comboBox1.Enabled = false; break; } i++; } } }
private void comboBox1_Format(object sender, ListControlConvertEventArgs e) { odeme o = e.ListItem as odeme; e.Value = o.yontemadi; }