Ejemplo n.º 1
0
        private void BtSql_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                context = TbSql.Text;

                var accessDb = new DBContextFactory();

                List <string> listedData = accessDb.getData(context);

                int count = listedData.Count;

                string record1 = listedData[0].ToString();

                string record2 = listedData[1].ToString();

                Panel.AppendText("\r\n" + record1.ToString() + "\r\n" + record2);
            }
            catch (Exception err)
            {
                if (err != null)
                {
                    Panel.Text = err.ToString();
                }
            }
        }