Example #1
0
        public Home()
        {
            using (var db = new TiendaDbContext())
            {
                if (!db.Database.Exists())
                {
                    var find_db = new BuscarDBVentana();
                    find_db.ShowDialog();
                }
                if (db.Tiendas.Count() == 0)
                {
                    db.SeedPublico(db);
                }
            }

            InitializeComponent();
        }
Example #2
0
        private void Button_Click(object sender, MouseButtonEventArgs e)
        {
            var bd = new BuscarDBVentana();

            bd.ShowDialog();
        }