Exemple #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddSparePartsInfofrm obj = new AddSparePartsInfofrm();

            obj.ShowDialog();
            LoadDefaultValues();
        }
Exemple #2
0
        private void btnEDIT_Click(object sender, EventArgs e)
        {
            var SparePartsInfoID = Convert.ToInt32(dgSparePartsInfo.CurrentRow.Cells["SparePartsInfoID"].Value.ToString());

            if (SparePartsInfoID == 0)
            {
                MyMessageBox.ShowBox("Please select a value from the SpareParts Info!!!");
            }
            else
            {
                AddSparePartsInfofrm obj = new AddSparePartsInfofrm(SparePartsInfoID, "EDIT");
                obj.ShowDialog();
                LoadDefaultValues();
            }
        }