示例#1
0
        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();
            }
        }
示例#2
0
        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();
            }
        }
示例#3
0
        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();
            }
        }
示例#4
0
        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();
            }
        }
示例#5
0
        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();
            }
        }
示例#6
0
        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();
            }
        }
示例#7
0
        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();
            }
        }
示例#8
0
        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();
            }
        }
示例#9
0
        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();
            }
        }