private void testbutton_Click(object sender, RoutedEventArgs e) { GroupListWindow window = new GroupListWindow(context); window.WindowStartupLocation = WindowStartupLocation.CenterScreen; window.Show(); }
private void Add() { List <string> users = new List <string>(); group.users = context.GroupModel.SingleOrDefault(x => x.Id == guidid).users; group.users += addEmailTextBox.Text + ","; group.Id = guidid; group.Name = context.GroupModel.SingleOrDefault(x => x.Id == guidid).Name; usun(guidid); context.GroupModel.Add(group); context.SaveChanges(); GroupUsersListBox.ItemsSource = test; GroupListWindow window = new GroupListWindow(context); window.WindowStartupLocation = WindowStartupLocation.CenterScreen; window.Show(); this.Close(); }