예제 #1
0
파일: PathUtil.cs 프로젝트: pulb/basenji
        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;
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }
예제 #4
0
파일: PathUtil.cs 프로젝트: balihb/basenji
        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);
        }