Esempio n. 1
0
        /// <summary>
        /// Loads the workspace from a folder. The structure of the workspace must be consistent.
        /// </summary>
        /// <param name="path">Folder containing the workspace</param>
        public static void LoadWorkspace(string path)
        {
            Current = new Workspace(path, true);

            var i = Current.DB.Notes.FirstOrDefault();
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a new workspace folder
 /// </summary>
 /// <param name="path">Path to directory to create the workspace in (must not exist)</param>
 /// <param name="name">Name of the company</param>
 /// <param name="ticker"></param>
 public static void CreateWorkspace(string path)
 {
     Current = new Workspace(path, false);
 }