Hi,
yes this should work like this:
A short example from my side:
In ThisProject.cs I've got the following code:
public void MyFormSample()
{
Form1 myForm;
try
{
myForm= new Form1(this.Project);
myForm.Show();
}
catch (Exception ex)
{
MessageBox.Show("Error: " + ex.Message.ToString() + " " + ex.Source.ToString());
}
In the Form1.cs I have:
...
public partial class Form1 : Form
{
zenOn.IProject myProject;
...
}
...
and
...
public Form1(zenOn.IProject _myProject)
{
InitializeComponent();
myProject = _myProject;
}
...