private void Add_Button_Click(object sender, RoutedEventArgs e) { this.pointList.Add(new MeterPoint()); PointWindow pointWindow = new PointWindow(pointList[pointList.Count() - 1]); pointWindow.ShowDialog(); Console.WriteLine(pointList.Count()); }
private void Edit_Button_Click(object sender, RoutedEventArgs e) { PointWindow pointWindow = new PointWindow((MeterPoint)lvPointList.SelectedItem); pointWindow.ShowDialog(); }