예제 #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();
        }