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; }
private void Note_Click(object sender, RoutedEventArgs e) { GetNote popup = new GetNote(vm); popup.ShowDialog(); if (vm.Note == null || vm.Note.Count() == 0) { return; } vm.AddNote(Barcode.Text, vm.Note); NoteText.Text = vm.Note; NoteBox.Visibility = Visibility.Visible; }