public void SetDestFile(DataGrid myDataGrid) { if (listDestFiles == null) { listDestFiles = new List <TargetFiles>(); } else { listDestFiles.Clear(); } DateCopyService.CheckDataGridSelectItem(myDataGrid, "コピー先", 99); foreach (TargetFiles data in myDataGrid.SelectedItems) { listDestFiles.Add(data); } return; }
public void SetSourceFile(DataGrid myDataGrid) { DateCopyService.CheckDataGridSelectItem(myDataGrid, "コピー元", 1); SourceFile = (TargetFiles)myDataGrid.SelectedItem; }