public GazetteerInfoForm(GazetteerInfo info) { InitializeComponent(); this.Info = info; this.DataContext = info; }
public GazetteerInfoForm(GazetteerInfo info) { InitializeComponent(); this.Info = info; this.DataContext = info; }
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); }
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; }