private void CreatePoint_Click(object sender, RoutedEventArgs e) { DatabaseHandler.CreatePoint(NewPointName.Text, (int)NewPointTypeCombo.SelectedValue); UpdatePoints(); NewPointName.Text = ""; }