OpenProject() public method

Opens a Project
public OpenProject ( YnoteProject project ) : void
project YnoteProject
return void
Exemplo n.º 1
0
 private IDockContent GetContentFromPersistString(string persistString)
 {
     string[] parsedStrings = persistString.Split(new[] {','});
     if (parsedStrings[0] == typeof (ProjectPanel).ToString())
     {
         var projp = new ProjectPanel();
         if (parsedStrings[1] != "ProjectPanel")
             projp.OpenProject(YnoteProject.Load(parsedStrings[1]));
         return projp;
     }
     if (parsedStrings[0] == typeof (Editor).ToString())
     {
         if (parsedStrings[1] == "Editor")
             return null;
         return OpenEditor(parsedStrings[1]);
     }
     return null;
 }