private void SaveButton_Click(object sender, RoutedEventArgs e) { float weight = (float.Parse(WeightBox.Text)); DataBaseSolution.ADDWeight(user1.UserId, weight); UserControl usc = null; GridMain.Children.Clear(); usc = new UserControlNotebook(mainApp); GridMain.Children.Add(usc); }