private void SurfaceButton_Click(object sender, System.Windows.RoutedEventArgs e) { DaoUtils.SetGeneralSide(person, _d, selector1.SelectedSide); PublicBoardCtx.Get().SaveChanges(); Close(); }