} // ActivateChild private void mnuProjectNew_Click(object sender, EventArgs e) { Project prj = new Project("esc", @"D:\Vs Projects\ESClient") { FileMask = Globals.CSHARP_DEFAULT_FILEMASK, RegExp = Globals.CSHARP_DEFAULT_REGEX }; EditWindow newWindow = new EditWindow(prj) { MdiParent = this }; this.ChildWindows.Add(prj.Identity, newWindow); newWindow.Show(); using (SettingsWindow frm = new SettingsWindow()) { /* * DialogResult ret = frm.ShowDialog(); * if (DialogResult.OK == ret) * { * Project prj = frm.Project; * EditWindow newWindow = new EditWindow(prj) { MdiParent = this }; * this.m_windows.Add(prj.Identity, newWindow); * newWindow.Show(); * }*/ } // using frm } // mnuProjectNew_Click
} // mnuProjectNew_Click private void mnuProjectOpen_Click(object sender, EventArgs e) { using (OpenFileDialog dlg = new OpenFileDialog() { Filter = "Globalizer project files|*.glbprj" }) { DialogResult ret = dlg.ShowDialog(); if (DialogResult.OK == ret) { Project prj = Project.Load(dlg.FileName); EditWindow newWindow = new EditWindow(prj) { MdiParent = this }; this.ChildWindows.Add(prj.Identity, newWindow); newWindow.Show(); } } // using } // mnuProjectOpen_Click