public TreeFrm(MainFrm owner, ProjectFrm newPro) { InitializeComponent(); _Owner = owner; _NewPro = newPro; this.Project = _NewPro.Project; //this.MdiParent = owner; }
private void OpenProjectFrm(object sender, EventArgs e) { if (projectFrm == null) { projectFrm = new ProjectFrm(this); } projectFrm.FormClosing += (a, b) => { this.projectFrm = null; }; projectFrm.ShowDialog(); }