private void AddPointClick(object sender, RoutedEventArgs e) { db.InsertColor(number, hex); this.Close(); }