Print Page | Close Window

additional logic to your business object

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1044
Printed Date: 28-Apr-2025 at 8:52pm


Topic: additional logic to your business object
Posted By: bahramchobin
Subject: additional logic to your business object
Date Posted: 05-Jan-2009 at 10:56pm
I am add
a perperty in Order class in ideablade sample
public string Test
    {
        get
        {
            return "";
        }
    }
next  i am add into mOrdersDGVBM
next add break point on "return "" "
next run program
PEER in this prperty create loop and never end breakpoint
whats the problem ?




Replies:
Posted By: davidklitzke
Date Posted: 07-Jan-2009 at 8:33am
What are you trying to accomplish?


Posted By: bahramchobin
Date Posted: 11-Jan-2009 at 12:25am
i have a master detail soultion and in detail class i add many simple property
program is run very well
but i trace program and break point in one of simple property code
it run and run and run many times and no exit of breakpoint whereas
i have ten record in detail and i idea this code in trace mode run
TWICE ten 
this code is Detail table class :
private static int s;
     public string test
     {
         get
         {
             s=s+1; 
             return S;
         }
    }

i run program and see the property in a datagrid but change current row in datagrid s increase


Posted By: davidklitzke
Date Posted: 12-Jan-2009 at 4:50pm
I am not sure that I understand what you are trying to say, but it is very difficult to debug a UI aplication.  If you set breakpoints you may find that they interfere with the operation of your application.  Try debugging your program so that you need just one breakpoint.  All the data that you collect before hitting the breakpoint will be valid, but once you hit the breakpoint, you run the risk of interfering with the continuing successful operation of your application.
 
This is not an IdeaBlade issue, it is a UI and Visual Studio issue.


Posted By: bahramchobin
Date Posted: 12-Jan-2009 at 9:15pm
thanks 



Print Page | Close Window