Beispiel #1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     add_Stock                  = new add_stock();
     add_Stock._ID              = Convert.ToInt32(dgvStock.CurrentRow.Cells[0].Value.ToString());
     add_Stock.saveBtn.Text     = "Update";
     add_Stock.saveBtn.ImageKey = "update.png";
     add_Stock.Text             = "Update Stock";
     add_Stock.Show();
     FillGrid();
     this.Close();
 }
Beispiel #2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     add_Stock = new add_stock();
     add_Stock.Show();
     this.Close();
 }