Пример #1
0
        public GazetteerInfoForm(GazetteerInfo info)
        {
            InitializeComponent();
            this.Info = info;

            this.DataContext = info;
        }
Пример #2
0
        public GazetteerInfoForm(GazetteerInfo info)
        {
            InitializeComponent();
            this.Info = info;

            this.DataContext = info;
        }
Пример #3
0
        public GazetteerInfo GetGazetteerInfo()
        {
            var result = new GazetteerInfo {
                DatabaseName = GetSetting("DatabaseName"), DatabaseVersion = GetSetting("DatabaseVersion"), Description = GetSetting("Description")
            };

            // Now count the records...
            SelectReader("SELECT count(*) from tblGaz", (reader) => {
                result.RecordCount = (int)(long)reader[0];
            });

            return(result);
        }
Пример #4
0
        public GazetteerInfo GetGazetteerInfo()
        {
            var result = new GazetteerInfo { DatabaseName = GetSetting("DatabaseName"), DatabaseVersion = GetSetting("DatabaseVersion"), Description = GetSetting("Description") };

            // Now count the records...
            SelectReader("SELECT count(*) from tblGaz", (reader) => {
                result.RecordCount = (int) (long) reader[0];
            });

            return result;
        }