回答編集履歴
2
見直しキャンペーン中
test
CHANGED
@@ -1,51 +1,26 @@
|
|
1
1
|
こういうことですか?
|
2
|
-
|
3
|
-
```
|
2
|
+
```cs
|
4
|
-
|
5
3
|
private void Button_Click(object sender, RoutedEventArgs e)
|
6
|
-
|
7
4
|
{
|
8
|
-
|
9
5
|
ItemNames = Source_DG.Select(x => x.Data_Name).ToArray();
|
10
|
-
|
11
6
|
ItemCodes = Source_DG.Select(x => x.Data_Code).ToArray();
|
12
|
-
|
13
7
|
ItemEnables = Source_DG.Select(x => x.Data_Enable).ToArray();
|
14
|
-
|
15
8
|
}
|
16
|
-
|
17
9
|
```
|
18
|
-
|
19
|
-
|
20
10
|
|
21
11
|
赤線が出たら`using System.Linq;`を上のほうに追加してください。
|
22
12
|
|
23
|
-
|
24
|
-
|
25
13
|
---
|
26
|
-
|
27
|
-
|
28
14
|
|
29
15
|
意図があっているのか自信ありませんが、こうですか?
|
30
16
|
|
31
|
-
|
32
|
-
|
33
|
-
```
|
17
|
+
```cs
|
34
|
-
|
35
18
|
private void Button1_Click(object sender, RoutedEventArgs e)
|
36
|
-
|
37
19
|
{
|
38
|
-
|
39
20
|
group = int.Parse(TextBox.Text);
|
40
21
|
|
41
|
-
|
42
|
-
|
43
22
|
ItemNames[group] = Source_DG.Select(x => x.Data_Name).ToList();
|
44
|
-
|
45
23
|
ItemCodes[group] = Source_DG.Select(x => x.Data_Code).ToList();
|
46
|
-
|
47
24
|
ItemEnables[group] = Source_DG.Select(x => x.Data_Enable).ToList();
|
48
|
-
|
49
25
|
}
|
50
|
-
|
51
26
|
```
|
1
追記
test
CHANGED
@@ -19,3 +19,33 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
赤線が出たら`using System.Linq;`を上のほうに追加してください。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
---
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
意図があっているのか自信ありませんが、こうですか?
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```C#
|
34
|
+
|
35
|
+
private void Button1_Click(object sender, RoutedEventArgs e)
|
36
|
+
|
37
|
+
{
|
38
|
+
|
39
|
+
group = int.Parse(TextBox.Text);
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
ItemNames[group] = Source_DG.Select(x => x.Data_Name).ToList();
|
44
|
+
|
45
|
+
ItemCodes[group] = Source_DG.Select(x => x.Data_Code).ToList();
|
46
|
+
|
47
|
+
ItemEnables[group] = Source_DG.Select(x => x.Data_Enable).ToList();
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
```
|