@@ -47,15 +47,15 @@ public void ViewTable()
47
47
{
48
48
if ( ! IsFileOpened ) return ;
49
49
50
- var table = BdatTables . Tables [ SelectedTable ] ;
50
+ BdatTable table = BdatTables . Tables [ SelectedTable ] ;
51
51
var editTable = new EditTable ( table ) ;
52
52
EditingTable = new DataTable ( ) ;
53
53
CurrentTable = table ;
54
54
55
55
EditingTable . Columns . Add ( new DataColumn ( "ID" ) { ReadOnly = true } ) ;
56
- foreach ( var col in editTable . Columns )
56
+ foreach ( BdatMember col in editTable . Columns )
57
57
{
58
- DataColumn column = new DataColumn ( ) ;
58
+ var column = new DataColumn ( ) ;
59
59
if ( col . Type != BdatMemberType . Scalar )
60
60
{
61
61
column . ReadOnly = true ;
@@ -65,17 +65,17 @@ public void ViewTable()
65
65
EditingTable . Columns . Add ( column ) ;
66
66
}
67
67
68
- foreach ( var item in editTable . Items )
68
+ foreach ( object [ ] item in editTable . Items )
69
69
{
70
- var row = EditingTable . NewRow ( ) ;
70
+ DataRow row = EditingTable . NewRow ( ) ;
71
71
row . ItemArray = item ;
72
72
EditingTable . Rows . Add ( item ) ;
73
73
}
74
74
75
75
EditingTable . AcceptChanges ( ) ;
76
76
IsTableOpened = true ;
77
77
78
- var temp = EditingTable ;
78
+ DataTable temp = EditingTable ;
79
79
EditingTable = null ;
80
80
EditingTable = temp ;
81
81
}
@@ -84,17 +84,17 @@ public void SaveTable()
84
84
{
85
85
if ( ! IsTableOpened ) return ;
86
86
87
- var rows = EditingTable . GetChanges ( ) ;
87
+ DataTable rows = EditingTable . GetChanges ( ) ;
88
88
if ( rows == null ) return ;
89
- var members = CurrentTable . Members ;
89
+ BdatMember [ ] members = CurrentTable . Members ;
90
90
91
- foreach ( var row in rows . Rows . Cast < DataRow > ( ) )
91
+ foreach ( DataRow row in rows . Rows . Cast < DataRow > ( ) )
92
92
{
93
- var itemId = int . Parse ( ( string ) row . ItemArray [ 0 ] ) ;
93
+ int itemId = int . Parse ( ( string ) row . ItemArray [ 0 ] ) ;
94
94
for ( int m = 0 ; m < members . Length ; m ++ )
95
95
{
96
96
if ( members [ m ] . Type != BdatMemberType . Scalar ) continue ;
97
- var value = ( string ) row . ItemArray [ m + 1 ] ;
97
+ string value = ( string ) row . ItemArray [ m + 1 ] ;
98
98
try
99
99
{
100
100
CurrentTable . WriteValue ( itemId , members [ m ] . Name , value ) ;
0 commit comments