public void LoadComboBox() { using (var difference = new SQLite.SQLiteConnection("GGzDB.db")) { adminInfo = difference.Query <Model.Admin> ("select Username from tbl_Admin").FirstOrDefault(); cmb_AdminUsernames.Items.Add(adminInfo.Username); } }
public RegisterPage() { this.InitializeComponent(); adminInfo = new Model.Admin(); userinfo = new Model.User(); HardwareButtons.BackPressed += HardwareButtons_BackPressed; DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait; dtp_Birthday.MaxYear = DateTime.Now; LoadComboBox(); }