public BaseDropIn(BaseForm baseForm, DropInClosed onDropInClosed = null) { OnDropInClosed = onDropInClosed; this.baseForm = baseForm; AutoScaleMode = AutoScaleMode.None; InitializeComponent(); Load += BaseDropIn_Load; }
public NewPartnerDropIn(BaseForm baseForm, Partner partner, DropInClosed onDropInClosed) : base(baseForm, onDropInClosed) { InitializeComponent(); if (partner != null) { btnSave.Text = "Gem"; lblNewPartner.Text = "Redigér partner"; } newPartnerForm = new NewPartner(baseForm, partner); newPartnerForm.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; newPartnerForm.Location = new Point(10, 10); pnlContentHolder.Controls.Add(newPartnerForm); }