Exemplo n.º 1
0
        private void ButtonNewPartner_Click(object sender, EventArgs e)
        {
            PartnerUnosForm form = new PartnerUnosForm();

            form.ShowDialog();
            LoadDatagrid();
        }
Exemplo n.º 2
0
 private void ButtonEditPartner_Click(object sender, EventArgs e)
 {
     _partner.OpciPodaci.Id = int.Parse(dbDataGridView1.SelectedRows[0].Cells[0].Value.ToString());
     if (_partner.OpciPodaci.Id != 0)
     {
         _partner.GetPartnerById();
         PartnerUnosForm pn = new PartnerUnosForm();
         pn.InitPartner(_partner);
         pn.ShowDialog();
         LoadDatagrid();
     }
 }