Exemplo n.º 1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.DataSource != null && e.RowIndex > -1)
     {
         DataTable dt  = (DataTable)this.dataGridView1.DataSource;
         int       oid = -1;
         oid = (int)this.dataGridView1.Rows[e.RowIndex].Cells[0].Value;
         DataRow[] rows = dt.Select("_OID = " + oid);
         if (rows != null && rows.Count() > 0)
         {
             SCViewEmployee epl = this.datatableRowToEmployee(rows[0]);
             ContractFrm.updateEmployee(epl, this.flag);
             this.Close();
         }
     }
 }
 public void setContractFrm(ContractFrm contractFrm)
 {
     this.contractFrm = contractFrm;
 }
Exemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     ContractFrm.Sender(cbxContractStatus.Text);
     //ContractFrm.instance.BringToFront();
     this.Close();
 }