Esempio n. 1
0
        public zooadmin()
        {
            Program.f1 = this;
            InitializeComponent();

            db = new zoocontext();

            db.herbivores.RemoveRange(db.herbivores);
            db.omnivores.RemoveRange(db.omnivores);
            db.hunters.RemoveRange(db.hunters);
            db.workers.RemoveRange(db.workers);
            db.helthers.RemoveRange(db.helthers);
            //db.Database.
            //db.workers.
            //db.workers.
            db.SaveChanges();
            this.StartPosition = FormStartPosition.CenterScreen;
            this.WindowState   = FormWindowState.Maximized;
        }