void Socket_StartEditSocketTable(object sender, BindingSource BSSocket) { Form02SimpleTable F = new Form02SimpleTable(BSSocket) { Text = "Типы разъёмов" }; F.ShowDialog(); if (F.DialogResult == System.Windows.Forms.DialogResult.OK) { C1.DS.AcceptChanges(); } else { C1.DS.RejectChanges(); } }
void EventType_StartEditEventTypeTable(object sender, BindingSource BSEventType) { Form02SimpleTable F = new Form02SimpleTable(BSEventType) { Text = "Типы событий" }; F.ShowDialog(); if (F.DialogResult == System.Windows.Forms.DialogResult.OK) { C1.DS.AcceptChanges(); } else { C1.DS.RejectChanges(); } }
void Department_StartEditDepartmentTable(object sender, BindingSource BSDepartment) { Form02SimpleTable F = new Form02SimpleTable(BSDepartment) { Text = "Структурные подразделения" }; F.ShowDialog(); if (F.DialogResult == System.Windows.Forms.DialogResult.OK) { C1.DS.AcceptChanges(); } else { C1.DS.RejectChanges(); } }
void RAMType_StartEditRAMTypeTable(object sender, BindingSource BSRAMType) { Form02SimpleTable F = new Form02SimpleTable(BSRAMType) { Text = "Типы оперативной памяти" }; F.ShowDialog(); if (F.DialogResult == System.Windows.Forms.DialogResult.OK) { C1.DS.AcceptChanges(); } else { C1.DS.RejectChanges(); } }
void OSName_StartEditOSNameTable(object sender, BindingSource BSOSName) { Form02SimpleTable F = new Form02SimpleTable(BSOSName) { Text = "Тип операционной системы" }; F.ShowDialog(); if (F.DialogResult == System.Windows.Forms.DialogResult.OK) { C1.DS.AcceptChanges(); } else { C1.DS.RejectChanges(); } }
void ArchitectureType_StartEditArchitectureTypeTable(object sender, BindingSource BSArchitectureType) { Form02SimpleTable F = new Form02SimpleTable(BSArchitectureType) { Text = "Разрядность операционной системы" }; F.ShowDialog(); if (F.DialogResult == System.Windows.Forms.DialogResult.OK) { C1.DS.AcceptChanges(); } else { C1.DS.RejectChanges(); } }
void HDDType_StartEditHDDTypeTable(object sender, BindingSource BSHDDType) { Form02SimpleTable F = new Form02SimpleTable(BSHDDType) { Text = "Типы жестких дисков" }; F.ShowDialog(); if (F.DialogResult == System.Windows.Forms.DialogResult.OK) { C1.DS.AcceptChanges(); } else { C1.DS.RejectChanges(); } }
void DeviceType_StartEditDeviceType(object sender, BindingSource BS) { Form02SimpleTable F = new Form02SimpleTable(BS) { Text = "Типы устройств" }; F.ShowDialog(); if (F.DialogResult == System.Windows.Forms.DialogResult.OK) { C1.DS.AcceptChanges(); } else { C1.DS.RejectChanges(); } }
void Vendor_StartEditVendorTable(object sender, BindingSource BSVendor) { Form02SimpleTable F = new Form02SimpleTable(BSVendor) { Text = "Производители" }; F.ShowDialog(); if (F.DialogResult == System.Windows.Forms.DialogResult.OK) { try { C1.DS.AcceptChanges(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } else { C1.DS.RejectChanges(); } }