DirtyChanged event?

DirtyChanged event?

Old forum URL: forums.lhotka.net/forums/t/3695.aspx


stacy.odell posted on Thursday, October 11, 2007

Has anyone implemented the equivalent of a DirtyChanged event for BusinessBase-based classes? 

I have a user interface where one of the requirements is to indicate in the UI when the object being edited on the screen is dirty (put a * in the app's titlebar).  I'd love to do this with an event handler to minimize the code needed in the UI.

Or, perhaps one exists and I just haven't looked hard enough.  :)  I'm using version 2.1.

 

-- Stacy

RockfordLhotka replied on Thursday, October 11, 2007

Just handle the standard PropertyChanged event. If you get one, then you know the object is dirty, because something just changed.

stacy.odell replied on Friday, October 12, 2007

Rocky,

Oh, well -- duh.  Thanks.  I never thought of that!  I knew it could be something simple.

I really love what I've seen of CSLA so far.  Unfortunately I picked a really big project to do as my first -- I'm replacing the entire middle tier of a large application that was originally built using the Web Service Software Factory (not my decision). 

The learning curve been challenging so far -- even with the books.  But after all the internal struggle surrounding how to build my object library, the payoff is when I get to gut loads of unnecessary code in the winforms UI and use databinding instead.  :)

I really appreciate the help!  Maybe I'll bump into you @ DevConnections if you're there...

-- Stacy

RockfordLhotka replied on Friday, October 12, 2007

Sounds like you have your hands full – good luck!!

 

I’ll be at DevConn Thursday, so hopefully I’ll see you there.

 

Rocky

 

 

From: stacy.odell [mailto:cslanet@lhotka.net]
Sent: Friday, October 12, 2007 12:28 AM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] DirtyChanged event?

 

Rocky,

Oh, well -- duh.  Thanks.  I never thought of that!  I knew it could be something simple.

I really love what I've seen of CSLA so far.  Unfortunately I picked a really big project to do as my first -- I'm replacing the entire middle tier of a large application that was originally built using the Web Service Software Factory (not my decision). 

The learning curve been challenging so far -- even with the books.  But after all the internal struggle surrounding how to build my object library, the payoff is when I get to gut loads of unnecessary code in the winforms UI and use databinding instead.  :)

I really appreciate the help!  Maybe I'll bump into you @ DevConnections if you're there...

-- Stacy



Copyright (c) Marimer LLC