public override IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { TemplateEditor edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new TemplateEditor(mdi); edit.FileOpen(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as TemplateEditor; if (edit != null) { edit.Activate(); } } } return edit; }
public override IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { TemplateEditor edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new TemplateEditor(mdi); edit.FileOpen(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as TemplateEditor; if (edit != null) { edit.Activate(); } } } return(edit); }
public override IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { ProjectBrowser edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new ProjectBrowser(mdi); edit.LoadProject(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as ProjectBrowser; if (edit != null) { edit.Activate(); } } } return edit; }
public override IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { ProjectBrowser edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new ProjectBrowser(mdi); edit.LoadProject(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as ProjectBrowser; if (edit != null) { edit.Activate(); } } } return(edit); }
public IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { SqlToolForm edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new SqlToolForm(mdi); edit.Open(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as SqlToolForm; if (edit != null) { edit.Activate(); } } } return edit; }
public IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { SqlToolForm edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new SqlToolForm(mdi); edit.Open(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as SqlToolForm; if (edit != null) { edit.Activate(); } } } return(edit); }