private void addSpiceButton_Click(object sender, EventArgs e) { SpiceAddForm addSpiceForm = new SpiceAddForm(); addSpiceForm.pushForm(this); addSpiceForm.StartPosition = FormStartPosition.CenterScreen; addSpiceForm.changControl("addSpice"); addSpiceForm.Show(); }
private void modifySpiceButton_Click(object sender, EventArgs e) { SpiceAddForm addSpiceForm = new SpiceAddForm(); addSpiceForm.pushForm(this); addSpiceForm.StartPosition = FormStartPosition.CenterScreen; addSpiceForm.changControl("modifySpice"); addSpiceForm.pushLabel(dataTableAddRecipe.Rows[allSpiceDataGridView.CurrentCell.RowIndex][2].ToString() , dataTableAddRecipe.Rows[allSpiceDataGridView.CurrentCell.RowIndex][0].ToString() , dataTableAddRecipe.Rows[allSpiceDataGridView.CurrentCell.RowIndex][1].ToString() , dataTableAddRecipe.Rows[allSpiceDataGridView.CurrentCell.RowIndex][3].ToString()); addSpiceForm.Show(); }