Example #1
0
 private void btnSveFakture_Click(object sender, EventArgs e)
 {
     Report.Servis.repServis f = new Report.Servis.repServis();
     f.ImeForme       = "Radni nalog servis";
     f.broj_dokumenta = dgv.CurrentRow.Cells["Barkode"].FormattedValue.ToString();
     f.godina         = Convert.ToInt32(dgv.CurrentRow.Cells["Godina"].FormattedValue.ToString());
     f.ShowDialog();
 }
Example #2
0
 private void dgv_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (dgv.Rows.Count > 0 && dgv.CurrentCell.RowIndex > -1)
     {
         Report.Servis.repServis f = new Report.Servis.repServis();
         f.ImeForme       = "Radni nalog servis";
         f.broj_dokumenta = dgv.CurrentRow.Cells["Barkode"].FormattedValue.ToString();
         f.godina         = Convert.ToInt32(dgv.CurrentRow.Cells["Godina"].FormattedValue.ToString());
         f.ShowDialog();
     }
 }