private void DeleteProcess(object sender, RoutedEventArgs e) { var idel = (Process)ProcessesDataGrid.SelectedItem; TaskProcessManager.DeleteProcess(idel.Id); ProcessesDataGrid.ItemsSource = TaskProcessManager.GetListProcesses(); }
private void RefreshProcessesList(object sender, RoutedEventArgs e) { ProcessesDataGrid.ItemsSource = TaskProcessManager.GetListProcesses(); }
public MainWindow() { InitializeComponent(); ProcessesDataGrid.ItemsSource = TaskProcessManager.GetListProcesses(); }