private void btnIlgiliEkle_Click(object sender, EventArgs e) { trfForm = new TarafSecimForm(2); if (trfForm.ShowDialog() == DialogResult.OK) { ilgiliKurumlarSource.Add(trfForm.secilenTaraf); gridControlIlgiliKurum.RefreshDataSource(); } }
private void txtTaraf_Click(object sender, EventArgs e) { trfForm = new TarafSecimForm(1); if (trfForm.ShowDialog() == DialogResult.OK) { secilenTaraf = trfForm.secilenTaraf; txtTaraf.DataBindings.Clear(); txtTaraf.DataBindings.Add("Text", secilenTaraf, "TarafAdi", true, DataSourceUpdateMode.Never); } }
//DAVA PANELİNE KARŞI TARAF EKLEME private void btnKarsiTarafEkle_Click(object sender, EventArgs e) { trfSecimForm = new TarafSecimForm(); if (trfSecimForm.ShowDialog() == DialogResult.OK) { if (trfSecimForm.secilenTaraf.KisiSirketKurum == TarafTipi.Kurum) { karsiTarafKurumUC = new KarsiTarafKurumUC() { Height = 360 }; karsiTarafKurumUC.TarafSecici(trfSecimForm.secilenTaraf); karsiTarafKurumUC.Dock = DockStyle.Bottom; pnlKarsiTaraf.Controls.Add(karsiTarafKurumUC); karsiTarafKurumUC.SendToBack(); } else if (trfSecimForm.secilenTaraf.KisiSirketKurum == TarafTipi.Sirket) { karsiTarafSirketUC = new KarsiTarafSirketUC() { Height = 180 }; karsiTarafSirketUC.TarafSecici(trfSecimForm.secilenTaraf); karsiTarafSirketUC.Dock = DockStyle.Bottom; pnlKarsiTaraf.Controls.Add(karsiTarafSirketUC); karsiTarafSirketUC.SendToBack(); } else { karsiTarafUC = new KarsiTarafUC() { Height = 165 }; karsiTarafUC.TarafSecici(trfSecimForm.secilenTaraf); karsiTarafUC.Dock = DockStyle.Bottom; pnlKarsiTaraf.Controls.Add(karsiTarafUC); karsiTarafUC.SendToBack(); } } pnlDosyaDetay.ScrollControlIntoView(btnKarsiTarafEkle); }