/// <summary> /// Setup voor database connectie en mainpage /// </summary> private bool CheckConnectionDatabase() { try { sql = new Data(myConnectionString); sql.ConnectionTest(); Brush b = new SolidColorBrush(Colors.Green); status.Fill = b; return(true); } catch (Exception ex) { MessageBox.Show(ex.Message); Brush b = new SolidColorBrush(Colors.Red); status.Fill = b; return(false); } }