@@ -6,17 +6,16 @@ namespace blazor_wasm
6
6
{
7
7
public partial class App
8
8
{
9
- int startTime ;
10
9
string lastMeasure ;
11
10
Stopwatch Stopwatch ;
12
11
13
- void startMeasure ( string name )
12
+ void StartMeasure ( string name )
14
13
{
15
14
Stopwatch = Stopwatch . StartNew ( ) ;
16
15
lastMeasure = name ;
17
16
}
18
17
19
- void stopMeasure ( )
18
+ void StopMeasure ( )
20
19
{
21
20
Stopwatch . Stop ( ) ;
22
21
var last = this . lastMeasure ?? "" ;
@@ -48,7 +47,7 @@ void stopMeasure()
48
47
"table" , "chair" , "house" , "bbq" , "desk" , "car" , "pony" , "cookie" , "sandwich" , "burger" , "pizza" , "mouse" , "keyboard"
49
48
} ;
50
49
51
- List < Data > buildData ( int count = 1000 )
50
+ List < Data > BuildData ( int count = 1000 )
52
51
{
53
52
var result = new List < Data > ( ) ;
54
53
for ( int i = 0 ; i < count ; i ++ )
@@ -63,50 +62,50 @@ List<Data> buildData(int count = 1000)
63
62
return result ;
64
63
}
65
64
66
- public void select ( Data item )
65
+ public void Select ( Data item )
67
66
{
68
- startMeasure ( "select" ) ;
67
+ StartMeasure ( "select" ) ;
69
68
this . selected = item . Id ;
70
69
}
71
70
72
- void delete ( Data item )
71
+ void Delete ( Data item )
73
72
{
74
- startMeasure ( "delete" ) ;
73
+ StartMeasure ( "delete" ) ;
75
74
this . data . Remove ( item ) ;
76
75
}
77
76
78
- void run ( )
77
+ void Run ( )
79
78
{
80
- startMeasure ( "run" ) ;
81
- this . data = this . buildData ( ) ;
79
+ StartMeasure ( "run" ) ;
80
+ this . data = this . BuildData ( ) ;
82
81
}
83
- void runlots ( )
82
+ void Runlots ( )
84
83
{
85
- startMeasure ( "runlots" ) ;
86
- this . data = this . buildData ( 10000 ) ;
84
+ StartMeasure ( "runlots" ) ;
85
+ this . data = this . BuildData ( 10000 ) ;
87
86
}
88
- void add ( )
87
+ void Add ( )
89
88
{
90
- startMeasure ( "add" ) ;
91
- this . data . AddRange ( this . buildData ( 1000 ) ) ;
89
+ StartMeasure ( "add" ) ;
90
+ this . data . AddRange ( this . BuildData ( 1000 ) ) ;
92
91
}
93
- void update ( )
92
+ void Update ( )
94
93
{
95
- startMeasure ( "update" ) ;
94
+ StartMeasure ( "update" ) ;
96
95
for ( var i = 0 ; i < this . data . Count ; i += 10 )
97
96
{
98
97
this . data [ i ] . Label += " !!!" ;
99
98
}
100
99
}
101
- void clear ( )
100
+ void Clear ( )
102
101
{
103
- startMeasure ( "clear" ) ;
102
+ StartMeasure ( "clear" ) ;
104
103
this . data = new List < Data > ( ) ;
105
104
this . selected = 0 ;
106
105
}
107
- void swaprows ( )
106
+ void SwapRows ( )
108
107
{
109
- startMeasure ( "swapRows" ) ;
108
+ StartMeasure ( "swapRows" ) ;
110
109
if ( this . data . Count > 998 )
111
110
{
112
111
var a = this . data [ 1 ] ;
@@ -119,7 +118,7 @@ protected override void OnAfterRender(bool firstRender)
119
118
{
120
119
if ( ! firstRender )
121
120
{
122
- this . stopMeasure ( ) ;
121
+ this . StopMeasure ( ) ;
123
122
}
124
123
}
125
124
}
0 commit comments