public Main()
        {
            InitializeComponent();


            this.db = new Database();

            LoadEntities();
        }
 public AddPersonForm(Database db, Person oldPerson)
 {
     InitializeComponent();
     this.oldPerson = oldPerson;
     this.db = db;
 }
 public AddRelationForm(Database db, AddRelationFormViewModel _datacontext)
 {
     InitializeComponent();
     datacontext = _datacontext;
     this.db = db;
 }