コード例 #1
0
 private void cellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 4)
     {
         if (e.RowIndex >= 0)
         {
             if (p == null)
             {
                 RobaDodajForm rdf = new RobaDodajForm((RobaDTO)dgPregled.Rows[e.RowIndex].Cells["colObject"].Value);
                 rdf.ShowDialog();
                 popuniSveRobe();
             }
             else
             {
                 izabranaRoba = (RobaDTO)dgPregled.Rows[e.RowIndex].Cells["colObject"].Value;
                 this.DialogResult = DialogResult.OK;
                 this.Close();
             }
         }
     }
 }
コード例 #2
0
 private void cellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 4)
     {
         if (e.RowIndex >= 0)
         {
             if (p == null)
             {
                 RobaDodajForm rdf = new RobaDodajForm((RobaDTO)dgPregled.Rows[e.RowIndex].Cells["colObject"].Value);
                 rdf.ShowDialog();
                 popuniSveRobe();
             }
             else
             {
                 izabranaRoba      = (RobaDTO)dgPregled.Rows[e.RowIndex].Cells["colObject"].Value;
                 this.DialogResult = DialogResult.OK;
                 this.Close();
             }
         }
     }
 }