示例#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();
 }
示例#2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     add_Stock = new add_stock();
     add_Stock.Show();
     this.Close();
 }
示例#3
0
 public stock_transactions()
 {
     InitializeComponent();
     add_Stock = new add_stock();
 }