public AddPersonDialog() { InitializeComponent(); string connectionString = ConfigurationManager.ConnectionStrings["WpfLINQtoSQLCompanyBenefit.Properties.Settings.CompanyBenefitDBConnectionString"].ConnectionString; dataContext = new LINQtoSQLdataClassesDataContext(connectionString); }