public SetupProgramDescr(SetupProgramDescr SPD, CertifProgramDescr CPD) { Caption = SPD.Caption; Description = SPD.Description; Name = SPD.Name; DisplayName = SPD.DisplayName; PathName = SPD.PathName; Started = SPD.Started; addRelationItem(CPD); }
private void button1_Click(object sender, EventArgs e) { SetupProgramDescr SetupProgramDescrCert = new SetupProgramDescr((SetupProgramDescr)setupProgramDescrBindingSource.Current, (CertifProgramDescr)relationProgramBindingSource.Current); if (!setupProgramDescrBindingSource1.Contains(SetupProgramDescrCert)) { setupProgramDescrBindingSource1.Add(SetupProgramDescrCert); } else { MessageBox.Show("Такой элемент существует"); } setupProgramDescrBindingSource1.Sort = "Name ASC"; dataGridView1.DataSource = setupProgramDescrBindingSource1; }
public SetupCertificationRelation(SetupProgramDescr PS, FSTECFindCertificationProgram FFC) { PrSetup = PS; FFCP = FFC; RelationProgram = new List <CertifProgramDescr>(); }
public SetupCertificationRelation(SetupProgramDescr PS) { PrSetup = PS; RelationProgram = new List <CertifProgramDescr>(); }