Example #1
0
 private void loadData()
 {
     using (var conn = AppDatabase.GetDbConnection(choose + ".db"))
     {
         var dbPerson = conn.Table <msg>();
         foreach (var person in dbPerson)
         {
             output = output + person.Msg + "\n";
         }
     }
 }
Example #2
0
        private void Load_Click(object sender, RoutedEventArgs e)
        {
            loadData();
            _out.Text = output;
            string next = "";

            using (var conn = AppDatabase.GetDbConnection(choose + ".db"))
            {
                var dbPerson = conn.Table <msg>();
                next = dbPerson.Last().Next;
                if (next.Length == 0)
                {
                    txtAddName.Text = "choose 1 or 0";
                }
                else
                {
                    txtAddName.Text = "Click Load To Continue";
                    choose          = next;
                }
            }
        }