示例#1
0
        public void ChangedProps()
        {
            Cursor last = Cursor.Current;

            Cursor.Current = Cursors.WaitCursor;
            foreach (var ver in Versions)
            {
                DatabaseStructure dbs = DatabaseStructure.Load(ver.GetFile());
                dbs.SetProps(m_props);
                dbs.Save(ver.GetFile());
            }
            Cursor.Current = last;
        }
示例#2
0
        public override bool CreateFile(string fn)
        {
            DbDefProperties props = new DbDefProperties();

            props.Dialect = new GenericDialect();

            if (EditPropertiesForm.Run(props, true))
            {
                DatabaseStructure dbs = new DatabaseStructure();
                dbs.SetProps(props);
                dbs.Save(fn);
                return(true);
            }
            return(false);
        }