Пример #1
0
        private void RemoveFromNetwork_Click(object sender, RoutedEventArgs e)
        {
            IconButton       button    = sender as IconButton;
            NetworkViewModel viewModel = button.CommandParameter as NetworkViewModel;

            viewModel?.RemoveServer(button.DataContext as NetworkServer);
        }