public static string GetDbDataPath(VolumeDatabase db) { string settingsPath = App.Settings.GetSettingsDirectory().FullName; string guid = db.GetDBProperties().Guid; string dataPath = Path.Combine(Path.Combine(settingsPath, "dbdata"), guid); if (!Directory.Exists(dataPath)) Directory.CreateDirectory(dataPath); return dataPath; }
public DBProperties(VolumeDatabase db) { BuildGui(); this.db = db; props = db.GetDBProperties(); entName.Text = props.Name; tvDescription.Buffer.Text = props.Description; entCreated.Text = props.Created.ToString(); }
public static string GetDbDataPath(VolumeDatabase db) { string settingsPath = App.Settings.GetSettingsDirectory().FullName; string guid = db.GetDBProperties().Guid; string dataPath = Path.Combine(Path.Combine(settingsPath, "dbdata"), guid); if (!Directory.Exists(dataPath)) { Directory.CreateDirectory(dataPath); } return(dataPath); }