call a function from the parent form | different namespaces

A

.::alex::.

Hello,

I have an interesting question. I have an MDI App. The Child Windows are
in different projects and namespaces according with his business logic.
So, the "main" namespace contains the MDI Parent from where I call the Child
Forms as you see here:

frmCategories objfrmSChild = frmCategories.GetChildInstance();
objfrmSChild.MdiParent = this;
objfrmSChild.WindowState = FormWindowState.Normal;
objfrmSChild.Show();
objfrmSChild.BringToFront();
objfrmSChild.Dock = DockStyle.Left;
splitContainer1.Panel1.Controls.Add(objfrmSChild);
objfrmSChild.SetParent(this);

The Project of the MDI Parent contains the references to each
sub-Project (.dll - Categories in that case). In the same time the MDI
Parent contains a small window, docked at the bottom, where I log some
events... where it will inform the user about his actions. So, my question
is how to do that?
I cannot add a reference of the MDI Parent (project) to the dlls (MDI
Childs) because, of course I have a ciclyc refence.

So, can somebody tell me what is the solution?

Thank you in advance.

Best regards,
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top