public void UjPartnerInit(Vezerloinfo vezerles,VezerloControl vezerlocontrol, string hivonev,Tablainfo szamlainfo,Tablainfo partnerinfo,Tablainfo vezirpartnerinfo,ComboBox partnercombo,FakUserInterface fak) { if (ujpartnerusercontrol == null) { Base hivo = vezerlocontrol.AktivControl; ujpartnerusercontrol = new Partner(fak,hivo,vezerles); panel1.Controls.Add(ujpartnerusercontrol); ujpartnerusercontrol.Dock = DockStyle.Fill; ujpartnerusercontrol.UjpartnerForm = this; } Partnerinfo = partnerinfo; Vezirpartnerinfo = vezirpartnerinfo; Szamlainfo = szamlainfo; ujpartnerusercontrol.Szallitokotelezo = false; ujpartnerusercontrol.Vevokotelezo = false; if (hivonev == "Koltsszla") { ujpartnerusercontrol.Szallitokotelezo = true; vezirpartnerinfo.InputColumns["BEVPARTNER"].DefaultValue = "N"; vezirpartnerinfo.InputColumns["KOLTSPARTNER"].DefaultValue = "I"; } else { ujpartnerusercontrol.Vevokotelezo = true; vezirpartnerinfo.InputColumns["BEVPARTNER"].DefaultValue = "I"; vezirpartnerinfo.InputColumns["KOLTSPARTNER"].DefaultValue = "N"; } ujpartnerusercontrol.AltalanosInit(); }
public override Base SetAktivControl(TablainfoTag tabinfotag,Vezerloinfo vezerles) { Base control = null; Tablainfo tabinfo = tabinfotag.Tablainfo; if (tabinfo != null && tabinfo.Tablanev == "PARTNER") { if (kulonpartner == null) kulonpartner = new Partner(FakUserInterface, this, vezerles); control = kulonpartner; int contindex = vezerles.OsszesControlNev.IndexOf("Partner"); vezerles.OsszesLetezoControl[contindex] = control; } return control; }