void thisBox_Click(object sender, EventArgs e) { Serial_Hierarchy_Form showForm = new Serial_Hierarchy_Form(); showForm.Set_PartInfo(serialHierarchyObject, serialInfo, newspaper); showForm.Read_Only = read_only; showForm.ShowDialog(); if (showForm.Changed) OnDataChanged(); show_hierarchy_value(); }
void thisBox_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode != Keys.Control) && (e.KeyCode != Keys.PrintScreen) && (e.KeyCode != Keys.Down)) { Serial_Hierarchy_Form showForm = new Serial_Hierarchy_Form(); showForm.Set_PartInfo(serialHierarchyObject, serialInfo, newspaper); showForm.Read_Only = read_only; showForm.ShowDialog(); if (showForm.Changed) OnDataChanged(); show_hierarchy_value(); } }