示例#1
0
 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();
     }
 }
示例#2
0
        private void btnAddVillage_Click(object sender, EventArgs e)
        {
            DailyCostForm dailyCostForm = new DailyCostForm(user, this, selectedRow, true);

            dailyCostForm.ShowDialog();
        }