private void Textitem_MouseUp(object sender, MouseButtonEventArgs e) { var send = (TextBlock)((ListBoxItem)sender).Content; var el = Preambula.First(w => w.Item1 == SplitProperties(send.Text).Item1); var temp = SplitProperties(send.Text); Hider.Visibility = Visibility.Visible; var m = new Mark(temp.Item1, temp.Item2); m.ShowDialog(); Hider.Visibility = Visibility.Hidden; Preambula = Preambula.Where(w => w.Item1 != el.Item1).ToList(); Preambula.Add(new Tuple<string, string>(m.name, m.value)); UpdateRemarks(); }
private void Button_Click_9(object sender, RoutedEventArgs e) { var m = new Mark("название", "значение"); m.ShowDialog(); Preambula.Add(new Tuple<string, string>(m.name, m.value)); UpdateRemarks(); }