Example #1
0
        private void Add()
        {
            var connectionViewModel = new ConnectionViewModel();

            Connections.Add(connectionViewModel);
            SelectedConnection = connectionViewModel;
        }
        private void Add()
        {
            var connectionViewModel = new ConnectionViewModel
            {
                IsEditing = true
            };

            Connections.Add(connectionViewModel);
            SelectedConnection = connectionViewModel;
        }
 private void Delete(ConnectionViewModel connectionViewModel)
 {
     Connections.Remove(connectionViewModel);
 }