Example #1
0
        private void AddLine_Click(object sender, RoutedEventArgs e)
        {
            var newline = LinesDataSource.GetRandomLine(Lines.Count);

            Lines.Add(newline);

            lst.SelectedItem = newline;
        }
Example #2
0
        public LinesEditor()
        {
            InitializeComponent();

            Lines = new ObservableCollection <LineViewModel>(LinesDataSource.GetRandomLines());

            DataContext = Lines;
        }