private void Create_Click(object sender, RoutedEventArgs e) { USERS User = new USERS() { LOGIN = "******", PASSWORD = "******" }; ADDRESS Adress = new ADDRESS() { CITY = "Минск", FLAT = 33, HOUSE = "2", HOUSING = "-", STREET = "Яна Чечота", STATE = "Беларусь" }; CLIENTS Client = new CLIENTS() { FIRSTNAME = "Настя", FATHERSNAME = "Павловна", BDAY = DateTime.Now, GENDER = "ж", PHONE = "37544429181", ID_PASSPORT = "2131231231231", SURNAME = "Стальмашенко", ADDRESS = Adress, }; Client.USERS.Add(User); //BALANCE Bal = new BALANCE() //{ // Bal //} using (Context db = new Context()) { db.CLIENTS.Add(Client); db.SaveChanges(); } Close(); workplace work = new workplace(); work.ShowDialog(); }
private void entryButton_Click(object sender, RoutedEventArgs e) { workplace work = new workplace(); work.ShowDialog(); }