Produced by Araxis Merge on 10/26/2017 10:44:23 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Oct 27 02:44:23 2017 UTC | ||
| 2 | OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\Source\Sources\BMS.Vista.TestEis\BMS.Utils | PagingSortSection.cs | Wed Oct 18 18:47:04 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 638 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | using Syst em; | |||||
| 2 | using Syst em.Collect ions; | |||||
| 3 | using Syst em.Text; | |||||
| 4 | using Syst em.Configu ration; | |||||
| 5 | using Syst em.Xml; | |||||
| 6 | ||||||
| 7 | namespace BMS.Utils | |||||
| 8 | { | |||||
| 9 | public class Pag ingSortSec tion : Con figuration Section | |||||
| 10 | { | |||||
| 11 | [C onfigurati onProperty ("pagingSo rt", IsDef aultCollec tion = fal se)] | |||||
| 12 | pu blic Pagin gSortColle ction Pagi ngSort | |||||
| 13 | { | |||||
| 14 | get | |||||
| 15 | { | |||||
| 16 | Date Time entry InLogMetho dTime = Da teTime.Utc Now; | |||||
| 17 | if ( InfoWorld. Tracing.IW Trace.IsEn tryEnabled ) | |||||
| 18 | { | |||||
| 19 | InfoWorld. Tracing.IW Trace.Entr y(System.R eflection. MethodBase .GetCurren tMethod(), entryInLo gMethodTim e); | |||||
| 20 | } | |||||
| 21 | try | |||||
| 22 | { | |||||
| 23 | PagingSort Collection _pagingSo rt = | |||||
| 24 | (PagingSor tCollectio n)base["pa gingSort"] ; | |||||
| 25 | return _pa gingSort; | |||||
| 26 | } | |||||
| 27 | fina lly | |||||
| 28 | { | |||||
| 29 | if (InfoWo rld.Tracin g.IWTrace. IsExitEnab led) | |||||
| 30 | { | |||||
| 31 | InfoWo rld.Tracin g.IWTrace. Exit(Syste m.Reflecti on.MethodB ase.GetCur rentMethod (), DateTi me.UtcNow, entryInLo gMethodTim e); | |||||
| 32 | } | |||||
| 33 | } | |||||
| 34 | } | |||||
| 35 | } | |||||
| 36 | ||||||
| 37 | pr otected ov erride voi d Deserial izeSection (System.Xm l.XmlReade r reader) | |||||
| 38 | { | |||||
| 39 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 40 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 41 | { | |||||
| 42 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 43 | } | |||||
| 44 | try | |||||
| 45 | { | |||||
| 46 | base .Deseriali zeSection( reader); | |||||
| 47 | } | |||||
| 48 | finally | |||||
| 49 | { | |||||
| 50 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 51 | { | |||||
| 52 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 53 | } | |||||
| 54 | } | |||||
| 55 | } | |||||
| 56 | ||||||
| 57 | pr otected ov erride str ing Serial izeSection (Configura tionElemen t parentEl ement, str ing name, Configurat ionSaveMod e saveMode ) | |||||
| 58 | { | |||||
| 59 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 60 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 61 | { | |||||
| 62 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 63 | } | |||||
| 64 | try | |||||
| 65 | { | |||||
| 66 | stri ng s = bas e.Serializ eSection(p arentEleme nt, name, saveMode); | |||||
| 67 | retu rn s; | |||||
| 68 | } | |||||
| 69 | finally | |||||
| 70 | { | |||||
| 71 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 72 | { | |||||
| 73 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 74 | } | |||||
| 75 | } | |||||
| 76 | } | |||||
| 77 | } | |||||
| 78 | ||||||
| 79 | public class Pag ingSortCol lection : Configurat ionElement Collection | |||||
| 80 | { | |||||
| 81 | pu blic Pagin gSortColle ction() | |||||
| 82 | { | |||||
| 83 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 84 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 85 | { | |||||
| 86 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 87 | } | |||||
| 88 | try | |||||
| 89 | { | |||||
| 90 | // A dd one url to the co llection. This is | |||||
| 91 | // n ot necessa ry; could leave the collection | |||||
| 92 | // e mpty until items are added to it outside | |||||
| 93 | // t he constru ctor. | |||||
| 94 | Pagi ngSortElem ent paging Sort = (Pa gingSortEl ement)Crea teNewEleme nt(); | |||||
| 95 | Add( pagingSort ); | |||||
| 96 | } | |||||
| 97 | finally | |||||
| 98 | { | |||||
| 99 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 100 | { | |||||
| 101 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 102 | } | |||||
| 103 | } | |||||
| 104 | } | |||||
| 105 | ||||||
| 106 | pu blic overr ide Config urationEle mentCollec tionType C ollectionT ype | |||||
| 107 | { | |||||
| 108 | get | |||||
| 109 | { | |||||
| 110 | Date Time entry InLogMetho dTime = Da teTime.Utc Now; | |||||
| 111 | if ( InfoWorld. Tracing.IW Trace.IsEn tryEnabled ) | |||||
| 112 | { | |||||
| 113 | InfoWorld. Tracing.IW Trace.Entr y(System.R eflection. MethodBase .GetCurren tMethod(), entryInLo gMethodTim e); | |||||
| 114 | } | |||||
| 115 | try | |||||
| 116 | { | |||||
| 117 | return Con figuration ElementCol lectionTyp e.AddRemov eClearMap; | |||||
| 118 | } | |||||
| 119 | fina lly | |||||
| 120 | { | |||||
| 121 | if (InfoWo rld.Tracin g.IWTrace. IsExitEnab led) | |||||
| 122 | { | |||||
| 123 | InfoWo rld.Tracin g.IWTrace. Exit(Syste m.Reflecti on.MethodB ase.GetCur rentMethod (), DateTi me.UtcNow, entryInLo gMethodTim e); | |||||
| 124 | } | |||||
| 125 | } | |||||
| 126 | } | |||||
| 127 | } | |||||
| 128 | ||||||
| 129 | pr otected ov erride Con figuration Element Cr eateNewEle ment() | |||||
| 130 | { | |||||
| 131 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 132 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 133 | { | |||||
| 134 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 135 | } | |||||
| 136 | try | |||||
| 137 | { | |||||
| 138 | retu rn new Pag ingSortEle ment(); | |||||
| 139 | } | |||||
| 140 | finally | |||||
| 141 | { | |||||
| 142 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 143 | { | |||||
| 144 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 145 | } | |||||
| 146 | } | |||||
| 147 | } | |||||
| 148 | ||||||
| 149 | ||||||
| 150 | pr otected ov erride Con figuration Element Cr eateNewEle ment(strin g sortCode ) | |||||
| 151 | { | |||||
| 152 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 153 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 154 | { | |||||
| 155 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 156 | } | |||||
| 157 | try | |||||
| 158 | { | |||||
| 159 | retu rn new Pag ingSortEle ment(sortC ode); | |||||
| 160 | } | |||||
| 161 | finally | |||||
| 162 | { | |||||
| 163 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 164 | { | |||||
| 165 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 166 | } | |||||
| 167 | } | |||||
| 168 | } | |||||
| 169 | ||||||
| 170 | ||||||
| 171 | pr otected ov erride Obj ect GetEle mentKey(Co nfiguratio nElement e lement) | |||||
| 172 | { | |||||
| 173 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 174 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 175 | { | |||||
| 176 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 177 | } | |||||
| 178 | try | |||||
| 179 | { | |||||
| 180 | retu rn ((Pagin gSortEleme nt)element ).SortColu mnCode; | |||||
| 181 | } | |||||
| 182 | finally | |||||
| 183 | { | |||||
| 184 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 185 | { | |||||
| 186 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 187 | } | |||||
| 188 | } | |||||
| 189 | } | |||||
| 190 | ||||||
| 191 | ||||||
| 192 | pu blic new s tring AddE lementName | |||||
| 193 | { | |||||
| 194 | get | |||||
| 195 | { return base.AddE lementName ; } | |||||
| 196 | ||||||
| 197 | set | |||||
| 198 | { base.A ddElementN ame = valu e; } | |||||
| 199 | ||||||
| 200 | } | |||||
| 201 | ||||||
| 202 | pu blic new s tring Clea rElementNa me | |||||
| 203 | { | |||||
| 204 | get | |||||
| 205 | { return base.Clea rElementNa me; } | |||||
| 206 | ||||||
| 207 | set | |||||
| 208 | { base.C learElemen tName = va lue; } | |||||
| 209 | ||||||
| 210 | } | |||||
| 211 | ||||||
| 212 | pu blic new s tring Remo veElementN ame | |||||
| 213 | { | |||||
| 214 | get | |||||
| 215 | { return base.Remo veElementN ame; } | |||||
| 216 | } | |||||
| 217 | ||||||
| 218 | pu blic new i nt Count | |||||
| 219 | { | |||||
| 220 | get { re turn base. Count; } | |||||
| 221 | } | |||||
| 222 | ||||||
| 223 | ||||||
| 224 | pu blic Pagin gSortEleme nt this[in t index] | |||||
| 225 | { | |||||
| 226 | get | |||||
| 227 | { | |||||
| 228 | Date Time entry InLogMetho dTime = Da teTime.Utc Now; | |||||
| 229 | if ( InfoWorld. Tracing.IW Trace.IsEn tryEnabled ) | |||||
| 230 | { | |||||
| 231 | InfoWorld. Tracing.IW Trace.Entr y(System.R eflection. MethodBase .GetCurren tMethod(), entryInLo gMethodTim e); | |||||
| 232 | } | |||||
| 233 | try | |||||
| 234 | { | |||||
| 235 | return (Pa gingSortEl ement)Base Get(index) ; | |||||
| 236 | } | |||||
| 237 | fina lly | |||||
| 238 | { | |||||
| 239 | if (InfoWo rld.Tracin g.IWTrace. IsExitEnab led) | |||||
| 240 | { | |||||
| 241 | InfoWo rld.Tracin g.IWTrace. Exit(Syste m.Reflecti on.MethodB ase.GetCur rentMethod (), DateTi me.UtcNow, entryInLo gMethodTim e); | |||||
| 242 | } | |||||
| 243 | } | |||||
| 244 | } | |||||
| 245 | set | |||||
| 246 | { | |||||
| 247 | Date Time entry InLogMetho dTime = Da teTime.Utc Now; | |||||
| 248 | if ( InfoWorld. Tracing.IW Trace.IsEn tryEnabled ) | |||||
| 249 | { | |||||
| 250 | InfoWorld. Tracing.IW Trace.Entr y(System.R eflection. MethodBase .GetCurren tMethod(), entryInLo gMethodTim e); | |||||
| 251 | } | |||||
| 252 | try | |||||
| 253 | { | |||||
| 254 | if (BaseGe t(index) ! = null) | |||||
| 255 | { | |||||
| 256 | BaseRe moveAt(ind ex); | |||||
| 257 | } | |||||
| 258 | BaseAdd(in dex, value ); | |||||
| 259 | } | |||||
| 260 | fina lly | |||||
| 261 | { | |||||
| 262 | if (InfoWo rld.Tracin g.IWTrace. IsExitEnab led) | |||||
| 263 | { | |||||
| 264 | InfoWo rld.Tracin g.IWTrace. Exit(Syste m.Reflecti on.MethodB ase.GetCur rentMethod (), DateTi me.UtcNow, entryInLo gMethodTim e); | |||||
| 265 | } | |||||
| 266 | } | |||||
| 267 | } | |||||
| 268 | } | |||||
| 269 | ||||||
| 270 | ne w public P agingSortE lement thi s[string S ortColumnC ode] | |||||
| 271 | { | |||||
| 272 | get | |||||
| 273 | { | |||||
| 274 | Date Time entry InLogMetho dTime = Da teTime.Utc Now; | |||||
| 275 | if ( InfoWorld. Tracing.IW Trace.IsEn tryEnabled ) | |||||
| 276 | { | |||||
| 277 | InfoWorld. Tracing.IW Trace.Entr y(System.R eflection. MethodBase .GetCurren tMethod(), entryInLo gMethodTim e); | |||||
| 278 | } | |||||
| 279 | try | |||||
| 280 | { | |||||
| 281 | return (Pa gingSortEl ement)Base Get(SortCo lumnCode); | |||||
| 282 | } | |||||
| 283 | fina lly | |||||
| 284 | { | |||||
| 285 | if (InfoWo rld.Tracin g.IWTrace. IsExitEnab led) | |||||
| 286 | { | |||||
| 287 | InfoWo rld.Tracin g.IWTrace. Exit(Syste m.Reflecti on.MethodB ase.GetCur rentMethod (), DateTi me.UtcNow, entryInLo gMethodTim e); | |||||
| 288 | } | |||||
| 289 | } | |||||
| 290 | } | |||||
| 291 | } | |||||
| 292 | ||||||
| 293 | pu blic int I ndexOf(Pag ingSortEle ment pagin gSort) | |||||
| 294 | { | |||||
| 295 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 296 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 297 | { | |||||
| 298 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 299 | } | |||||
| 300 | try | |||||
| 301 | { | |||||
| 302 | retu rn BaseInd exOf(pagin gSort); | |||||
| 303 | } | |||||
| 304 | finally | |||||
| 305 | { | |||||
| 306 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 307 | { | |||||
| 308 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 309 | } | |||||
| 310 | } | |||||
| 311 | } | |||||
| 312 | ||||||
| 313 | pu blic void Add(Paging SortElemen t pagingSo rt) | |||||
| 314 | { | |||||
| 315 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 316 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 317 | { | |||||
| 318 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 319 | } | |||||
| 320 | try | |||||
| 321 | { | |||||
| 322 | Base Add(paging Sort); | |||||
| 323 | } | |||||
| 324 | finally | |||||
| 325 | { | |||||
| 326 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 327 | { | |||||
| 328 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 329 | } | |||||
| 330 | } | |||||
| 331 | } | |||||
| 332 | ||||||
| 333 | pr otected ov erride voi d BaseAdd( Configurat ionElement element) | |||||
| 334 | { | |||||
| 335 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 336 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 337 | { | |||||
| 338 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 339 | } | |||||
| 340 | try | |||||
| 341 | { | |||||
| 342 | Base Add(elemen t, false); | |||||
| 343 | } | |||||
| 344 | finally | |||||
| 345 | { | |||||
| 346 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 347 | { | |||||
| 348 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 349 | } | |||||
| 350 | } | |||||
| 351 | } | |||||
| 352 | ||||||
| 353 | pu blic void Remove(Pag ingSortEle ment pagin gSort) | |||||
| 354 | { | |||||
| 355 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 356 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 357 | { | |||||
| 358 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 359 | } | |||||
| 360 | try | |||||
| 361 | { | |||||
| 362 | if ( BaseIndexO f(pagingSo rt) >= 0) | |||||
| 363 | BaseRemove (pagingSor t.SortColu mnCode); | |||||
| 364 | } | |||||
| 365 | finally | |||||
| 366 | { | |||||
| 367 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 368 | { | |||||
| 369 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 370 | } | |||||
| 371 | } | |||||
| 372 | } | |||||
| 373 | ||||||
| 374 | pu blic void RemoveAt(i nt index) | |||||
| 375 | { | |||||
| 376 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 377 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 378 | { | |||||
| 379 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 380 | } | |||||
| 381 | try | |||||
| 382 | { | |||||
| 383 | Base RemoveAt(i ndex); | |||||
| 384 | } | |||||
| 385 | finally | |||||
| 386 | { | |||||
| 387 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 388 | { | |||||
| 389 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 390 | } | |||||
| 391 | } | |||||
| 392 | } | |||||
| 393 | ||||||
| 394 | pu blic void Remove(str ing name) | |||||
| 395 | { | |||||
| 396 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 397 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 398 | { | |||||
| 399 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 400 | } | |||||
| 401 | try | |||||
| 402 | { | |||||
| 403 | Base Remove(nam e); | |||||
| 404 | } | |||||
| 405 | finally | |||||
| 406 | { | |||||
| 407 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 408 | { | |||||
| 409 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 410 | } | |||||
| 411 | } | |||||
| 412 | } | |||||
| 413 | ||||||
| 414 | pu blic void Clear() | |||||
| 415 | { | |||||
| 416 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 417 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 418 | { | |||||
| 419 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 420 | } | |||||
| 421 | try | |||||
| 422 | { | |||||
| 423 | Base Clear(); | |||||
| 424 | } | |||||
| 425 | finally | |||||
| 426 | { | |||||
| 427 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 428 | { | |||||
| 429 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 430 | } | |||||
| 431 | } | |||||
| 432 | } | |||||
| 433 | } | |||||
| 434 | ||||||
| 435 | public class Pag ingSortEle ment : Con figuration Element | |||||
| 436 | { | |||||
| 437 | // Construct or allowin g name, ur l, and por t to be sp ecified. | |||||
| 438 | pu blic Pagin gSortEleme nt(String newCode, S tring newC olumn) | |||||
| 439 | { | |||||
| 440 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 441 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 442 | { | |||||
| 443 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 444 | } | |||||
| 445 | try | |||||
| 446 | { | |||||
| 447 | Sort ColumnCode = newCode ; | |||||
| 448 | Sort ColumnName = newColu mn; | |||||
| 449 | } | |||||
| 450 | finally | |||||
| 451 | { | |||||
| 452 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 453 | { | |||||
| 454 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 455 | } | |||||
| 456 | } | |||||
| 457 | } | |||||
| 458 | ||||||
| 459 | // Default c onstructor , will use default v alues as d efined | |||||
| 460 | // below. | |||||
| 461 | pu blic Pagin gSortEleme nt() | |||||
| 462 | { | |||||
| 463 | } | |||||
| 464 | ||||||
| 465 | // Construct or allowin g code to be specifi ed, will t ake the | |||||
| 466 | // default v alue for c olumn. | |||||
| 467 | pu blic Pagin gSortEleme nt(string code) | |||||
| 468 | { | |||||
| 469 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 470 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 471 | { | |||||
| 472 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 473 | } | |||||
| 474 | try | |||||
| 475 | { | |||||
| 476 | Sort ColumnCode = code; | |||||
| 477 | } | |||||
| 478 | finally | |||||
| 479 | { | |||||
| 480 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 481 | { | |||||
| 482 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 483 | } | |||||
| 484 | } | |||||
| 485 | } | |||||
| 486 | ||||||
| 487 | // Create a "sortColum nCode" att ribute. | |||||
| 488 | [C onfigurati onProperty ("sortColu mnCode", D efaultValu e = "false ", IsRequi red = true , IsKey = true)] | |||||
| 489 | pu blic strin g SortColu mnCode | |||||
| 490 | { | |||||
| 491 | get | |||||
| 492 | { | |||||
| 493 | Date Time entry InLogMetho dTime = Da teTime.Utc Now; | |||||
| 494 | if ( InfoWorld. Tracing.IW Trace.IsEn tryEnabled ) | |||||
| 495 | { | |||||
| 496 | InfoWorld. Tracing.IW Trace.Entr y(System.R eflection. MethodBase .GetCurren tMethod(), entryInLo gMethodTim e); | |||||
| 497 | } | |||||
| 498 | try | |||||
| 499 | { | |||||
| 500 | return (st ring)this[ "sortColum nCode"]; | |||||
| 501 | } | |||||
| 502 | fina lly | |||||
| 503 | { | |||||
| 504 | if (InfoWo rld.Tracin g.IWTrace. IsExitEnab led) | |||||
| 505 | { | |||||
| 506 | InfoWo rld.Tracin g.IWTrace. Exit(Syste m.Reflecti on.MethodB ase.GetCur rentMethod (), DateTi me.UtcNow, entryInLo gMethodTim e); | |||||
| 507 | } | |||||
| 508 | } | |||||
| 509 | } | |||||
| 510 | set | |||||
| 511 | { | |||||
| 512 | Date Time entry InLogMetho dTime = Da teTime.Utc Now; | |||||
| 513 | if ( InfoWorld. Tracing.IW Trace.IsEn tryEnabled ) | |||||
| 514 | { | |||||
| 515 | InfoWorld. Tracing.IW Trace.Entr y(System.R eflection. MethodBase .GetCurren tMethod(), entryInLo gMethodTim e); | |||||
| 516 | } | |||||
| 517 | try | |||||
| 518 | { | |||||
| 519 | this["sort ColumnCode "] = value ; | |||||
| 520 | } | |||||
| 521 | fina lly | |||||
| 522 | { | |||||
| 523 | if (InfoWo rld.Tracin g.IWTrace. IsExitEnab led) | |||||
| 524 | { | |||||
| 525 | InfoWo rld.Tracin g.IWTrace. Exit(Syste m.Reflecti on.MethodB ase.GetCur rentMethod (), DateTi me.UtcNow, entryInLo gMethodTim e); | |||||
| 526 | } | |||||
| 527 | } | |||||
| 528 | } | |||||
| 529 | } | |||||
| 530 | ||||||
| 531 | // Create a "sortColum nName" att ribute. | |||||
| 532 | [C onfigurati onProperty ("sortColu mnName", D efaultValu e = "false ", IsRequi red = true )] | |||||
| 533 | pu blic strin g SortColu mnName | |||||
| 534 | { | |||||
| 535 | get | |||||
| 536 | { | |||||
| 537 | Date Time entry InLogMetho dTime = Da teTime.Utc Now; | |||||
| 538 | if ( InfoWorld. Tracing.IW Trace.IsEn tryEnabled ) | |||||
| 539 | { | |||||
| 540 | InfoWorld. Tracing.IW Trace.Entr y(System.R eflection. MethodBase .GetCurren tMethod(), entryInLo gMethodTim e); | |||||
| 541 | } | |||||
| 542 | try | |||||
| 543 | { | |||||
| 544 | return (st ring)this[ "sortColum nName"]; | |||||
| 545 | } | |||||
| 546 | fina lly | |||||
| 547 | { | |||||
| 548 | if (InfoWo rld.Tracin g.IWTrace. IsExitEnab led) | |||||
| 549 | { | |||||
| 550 | InfoWo rld.Tracin g.IWTrace. Exit(Syste m.Reflecti on.MethodB ase.GetCur rentMethod (), DateTi me.UtcNow, entryInLo gMethodTim e); | |||||
| 551 | } | |||||
| 552 | } | |||||
| 553 | } | |||||
| 554 | set | |||||
| 555 | { | |||||
| 556 | Date Time entry InLogMetho dTime = Da teTime.Utc Now; | |||||
| 557 | if ( InfoWorld. Tracing.IW Trace.IsEn tryEnabled ) | |||||
| 558 | { | |||||
| 559 | InfoWorld. Tracing.IW Trace.Entr y(System.R eflection. MethodBase .GetCurren tMethod(), entryInLo gMethodTim e); | |||||
| 560 | } | |||||
| 561 | try | |||||
| 562 | { | |||||
| 563 | this["sort ColumnName "] = value ; | |||||
| 564 | } | |||||
| 565 | fina lly | |||||
| 566 | { | |||||
| 567 | if (InfoWo rld.Tracin g.IWTrace. IsExitEnab led) | |||||
| 568 | { | |||||
| 569 | InfoWo rld.Tracin g.IWTrace. Exit(Syste m.Reflecti on.MethodB ase.GetCur rentMethod (), DateTi me.UtcNow, entryInLo gMethodTim e); | |||||
| 570 | } | |||||
| 571 | } | |||||
| 572 | } | |||||
| 573 | } | |||||
| 574 | ||||||
| 575 | pr otected ov erride voi d Deserial izeElement (System.Xm l.XmlReade r reader, bool seria lizeCollec tionKey) | |||||
| 576 | { | |||||
| 577 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 578 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 579 | { | |||||
| 580 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 581 | } | |||||
| 582 | try | |||||
| 583 | { | |||||
| 584 | base .Deseriali zeElement( reader, se rializeCol lectionKey ); | |||||
| 585 | } | |||||
| 586 | finally | |||||
| 587 | { | |||||
| 588 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 589 | { | |||||
| 590 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 591 | } | |||||
| 592 | } | |||||
| 593 | } | |||||
| 594 | ||||||
| 595 | ||||||
| 596 | pr otected ov erride boo l Serializ eElement(S ystem.Xml. XmlWriter writer, bo ol seriali zeCollecti onKey) | |||||
| 597 | { | |||||
| 598 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 599 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 600 | { | |||||
| 601 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 602 | } | |||||
| 603 | try | |||||
| 604 | { | |||||
| 605 | bool ret = bas e.Serializ eElement(w riter, ser ializeColl ectionKey) ; | |||||
| 606 | retu rn ret; | |||||
| 607 | } | |||||
| 608 | finally | |||||
| 609 | { | |||||
| 610 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 611 | { | |||||
| 612 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 613 | } | |||||
| 614 | } | |||||
| 615 | } | |||||
| 616 | ||||||
| 617 | pr otected ov erride boo l IsModifi ed() | |||||
| 618 | { | |||||
| 619 | DateTime entryInLo gMethodTim e = DateTi me.UtcNow; | |||||
| 620 | if (Info World.Trac ing.IWTrac e.IsEntryE nabled) | |||||
| 621 | { | |||||
| 622 | Info World.Trac ing.IWTrac e.Entry(Sy stem.Refle ction.Meth odBase.Get CurrentMet hod(), ent ryInLogMet hodTime); | |||||
| 623 | } | |||||
| 624 | try | |||||
| 625 | { | |||||
| 626 | bool ret = bas e.IsModifi ed(); | |||||
| 627 | retu rn ret; | |||||
| 628 | } | |||||
| 629 | finally | |||||
| 630 | { | |||||
| 631 | if ( InfoWorld. Tracing.IW Trace.IsEx itEnabled) | |||||
| 632 | { | |||||
| 633 | InfoWorld. Tracing.IW Trace.Exit (System.Re flection.M ethodBase. GetCurrent Method(), DateTime.U tcNow, ent ryInLogMet hodTime); | |||||
| 634 | } | |||||
| 635 | } | |||||
| 636 | } | |||||
| 637 | } | |||||
| 638 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.