private void BtnYeniCari_Click(object sender, EventArgs e) { if (ArsLibrary.appForm != null) { CariSabit CariForm = new CariSabit(); ArsLibrary.appForm.AddChildForm(CariForm, "Cari Tanımları", new Size(0, 0), null); } tbFocus.Focus(); }
private void grdCariler_DoubleClick(object sender, EventArgs e) { if (grdCariler.Rows.Count != 0 && grdCariler.SelectedRows.Count > 0) { string cariKodu = grdCariler.SelectedRows[0].Cells.Cast <DataGridViewCell>().First(c => c.OwningColumn.DataPropertyName == "CARI_KODU").Value.ToString(); if (ArsLibrary.appForm != null) { CariSabit CariSabitForm = new CariSabit(); CariSabitForm.cariKodu = cariKodu; ArsLibrary.appForm.AddChildForm(CariSabitForm, "Cari Sabit", new Size(0, 0), null); } } }