public FrmCompanyEdit(ICompanyService companyService, IActivityService activityService, FrmActivityAdd frmActivityAdd) { this.companyService = companyService; this.activityService = activityService; this.frmActivityAdd = frmActivityAdd; InitializeComponent(); this.frmActivityAdd.MdiParent = this.MdiParent; this.frmActivityAdd.MasterForm = this; }
public FrmMain(IUserService userService, FrmRegister frmRegister, FrmCompanies frmCompanies, FrmLogin frmLogin, FrmCompaniesAdd frmCompaniesAdd, FrmCompaniesEdit frmCompaniesEdit, FrmActivityAdd frmActivityAdd) { this.frmLogin = frmLogin; this.userService = userService; this.frmRegister = frmRegister; this.frmCompanies = frmCompanies; this.frmCompaniesAdd = frmCompaniesAdd; this.frmCompaniesEdit = frmCompaniesEdit; this.frmActivityAdd = frmActivityAdd; InitializeComponent(); this.frmRegister.MdiParent = this; frmRegister.FormClosed += FrmRegister_FormClosed; this.frmCompanies.MdiParent = this; this.frmLogin.MdiParent = this; frmLogin.MasterForm = this; }