CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
nonSerializableEventHandler.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="nonSerializableEventHandler.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>no summary</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Collections.Generic;
10using System.Text;
11
13{
15 {
16 private int _count = 0;
17
18 public void Reg(Csla.Core.BusinessBase obj)
19 {
20 obj.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(obj_PropertyChanged);
21 }
22
23 public void obj_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
24 {
25 _count += 1;
26 Console.WriteLine(_count.ToString());
27 TestResults.AddOrOverwrite("PropertyChangedFiredCount", _count.ToString());
28 }
29 }
30}
This is the non-generic base class from which most business objects will be derived.
void obj_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
Static dictionary-like class that offers similar functionality to GlobalContext This is used in tests...
Definition: TestResults.cs:21
static void AddOrOverwrite(string key, string value)
Overwrite an item in the test results, to indicate an outcome of a particular operation
Definition: TestResults.cs:39