private void btnEditVillage_Click(object sender, EventArgs e) { if (selectedRow == null) { MessageBox.Show("يجب اختيار مصروف للتعديل اولا", "خطأ", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { DailyCostForm dailyCostForm = new DailyCostForm(user, this, selectedRow, false); dailyCostForm.ShowDialog(); } }
private void btnAddVillage_Click(object sender, EventArgs e) { DailyCostForm dailyCostForm = new DailyCostForm(user, this, selectedRow, true); dailyCostForm.ShowDialog(); }