private void editDieMoldDetailsToolStripMenuItem_Click(object sender, EventArgs e) { AddNewDieAndMolds DieMold = new AddNewDieAndMolds(1); DieMold.Show(); this.Close(); }
private void buttonEditDie_Click(object sender, EventArgs e) { AddNewDieAndMolds DieMold = new AddNewDieAndMolds(1); DieMold.Show(); this.Close(); }
private void createDieMoldToolStripMenuItem_Click(object sender, EventArgs e) { AddNewDieAndMolds DieMold = new AddNewDieAndMolds(0); DieMold.Show(); this.Close(); }
private void dataGridViewTPM_CellContentClick(object sender, DataGridViewCellEventArgs e) { int MoldId = (Int32)dataGridViewTPM.CurrentRow.Cells[6].Value; //Calculates PkId of DieAndMold and Saves it in hidden column index 6 of grid view int actualShots = (Int32)dataGridViewTPM.CurrentRow.Cells[3].Value; int plannedShots = (Int32)dataGridViewTPM.CurrentRow.Cells[2].Value; if (e.ColumnIndex == 4)//EditButton { AddNewDieAndMolds DieMoldDieMold = new AddNewDieAndMolds(MoldId); DieMoldDieMold.Show(); this.Close(); } if (e.ColumnIndex == 5) //Perform Maintenance { int rows = ButtonsUtility.PerformDieAndMoldMaintenance(MoldId); if (rows > 0) { labelSucessfulmaintenanace.Visible = true; GetDataGrid(Item_Id); } } }