BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-23-2009, 02:36 PM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2007
Location: Cincinnati, OH
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 87
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default C# equivalent for: if( context != FieldChangeListener.PROGRAMMATIC)

Please Login to Remove!

In Blackberry programming there is a very handy way to tell if an event was fired programmatically or if it came from the user:

if( context != FieldChangeListener.PROGRAMMATIC)

Like in the following code:

Code:
    private class MyListener implements FieldChangeListener
    {   public void fieldChanged( Field field, int context)
        {   if( context != FieldChangeListener.PROGRAMMATIC) 
            {   
                //code here...
            }
        }
    }
Does anyone know if there is an equivalent way to do this in C#. (Yes, I'm trying to create a WindowsMobile App).

Much thanks if anyone can help.

P.S. If anyone can recommend a good C# forum or WindowsMobile programming forum, I'd love to hear about it. I haven't found anything as good as Blackberry Forums for C#/WindowsMobile.
Offline  
Old 07-23-2009, 02:41 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2007
Location: Cincinnati, OH
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 87
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Or even J2ME or J2SE...

Or if someone could even show me how this is done in J2ME or J2SE (if there is a way).

Thanks again...
Offline  
Old 07-23-2009, 02:57 PM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

I would be surprised if it has anything to do with the programing language. The Blackberry UI classes simply determine if the event came from the user and pass that information on. Does Windows Mobile do that in any language. Might it not be more fruitful to ask that question on a WinMo forum?
__________________
My other Blackberry is a PlayBook.
Offline  
Old 07-23-2009, 03:08 PM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2007
Location: Cincinnati, OH
Model: 8700c
PIN: N/A
Carrier: Cingular
Posts: 87
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Good point. I should probably be looking in the .NET Compact Framework, not the C# language.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.