コード例 #1
0
        private void editDieMoldDetailsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddNewDieAndMolds DieMold = new AddNewDieAndMolds(1);

            DieMold.Show();
            this.Close();
        }
コード例 #2
0
        private void buttonEditDie_Click(object sender, EventArgs e)
        {
            AddNewDieAndMolds DieMold = new AddNewDieAndMolds(1);

            DieMold.Show();
            this.Close();
        }
コード例 #3
0
        private void createDieMoldToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddNewDieAndMolds DieMold = new AddNewDieAndMolds(0);

            DieMold.Show();
            this.Close();
        }
コード例 #4
0
        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);
                }
            }
        }