private void Note_Click(object sender, RoutedEventArgs e) { GetNote popup = new GetNote(); popup.ShowDialog(); vm.AddNote(Barcode.Text, vm.Note); NoteText.Text = vm.Note; NoteBox.Visibility = Visibility.Visible; }