public BranchListUI(DepartmentUI frmDepartment) { InitializeComponent(); branchRepository = EntityContainer.GetType <IBranchRepository>(); this.frmDepartment = frmDepartment; formActive = "Department"; }
private void mnuDepartment_Click(object sender, EventArgs e) { var frmDepartment = new DepartmentUI(); frmDepartment.MdiParent = this; frmDepartment.Show(); }