Esempio n. 1
0
 /// <summary>
 /// Creates page from existing content
 /// </summary>
 /// <param name="fileContent">Existing content</param>
 /// <param name="url">Url of file (which project will be saved in)</param>
 /// <returns>Page</returns>
 internal static CanvasTabPage createPageFromFile(String fileContent, String url)
 {
     CanvasTabPage tabPage = new CanvasTabPage();
     tabPage.activeProjectContent = fileContent;
     tabPage.Text = System.IO.Path.GetFileName(url);
     tabPage.url = url;
     return tabPage;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates new page with new project. Project info must be passed
 /// </summary>
 /// <param name="projectInfo"></param>
 /// <param name="url">Url of file (which project will be saved in)</param>
 /// <returns></returns>
 internal static CanvasTabPage createPage(CProjectInfo projectInfo, String url)
 {
     CanvasTabPage tabPage = new CanvasTabPage();
     tabPage.projectInfo = projectInfo;
     tabPage.activeProjectContent = projectInfo.projectXml;
     tabPage.Text = System.IO.Path.GetFileName(url);
     tabPage.url = url;
     return tabPage;
 }
Esempio n. 3
0
 /// <summary>
 /// Creates new page with new project. Project info must be passed
 /// </summary>
 /// <param name="projectInfo"></param>
 /// <param name="url">Url of file (which project will be saved in)</param>
 /// <returns></returns>
 internal static CanvasTabPage createNewPage(CProjectInfo projectInfo, String url)
 {
     CanvasTabPage tabPage = new CanvasTabPage();
     tabPage.projectInfo = projectInfo;
     tabPage.activeProjectContent = ProjectResources.new_file.ToString();
     tabPage.Text = System.IO.Path.GetFileName(url);
     tabPage.url = url;
     return tabPage;
 }