473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Good GUI design, the .NET way?

I am beginning work on what will be a rather large .NET application.

I have a treeview that I would like to be very "intelligent" in that
it represents some program data and automatically updates itself. I
am wondering what a good design pattern is.

Take the Solution Explorer in VS.NET for example. It is always up to
date, representing files, references, projects without ever needing to
"refresh" (though there is a refresh button, I never need it).

I doubt that, in VS.NET, whatever code is responsible for adding a
reference to your project is really aware of the Solution Explorer and
goes in there to the treeview and updates the "References" node
itself.

Instead, I imagine that there is a Project object, which contains a
ReferenceCollection object that has events to notify listeners when it
is changed. The Solution Explorer just hooks itself up to the
ReferenceCollection's "ReferenceChanged" event or something and
handles adding/removing nodes itself.

Am I on track here? Is this how it's done? That would mean that
every major application "object" and especially collections are going
to have a lot of events.

Nick
Jul 21 '05 #1
1 1386
> it represents some program data and automatically updates itself. I

Hi Nick,

Take a look at the Observer pattern.

http://msdn.microsoft.com/library/de...esObserver.asp

There is a very cool sample app called IssueVision that implements this pattern. I got it at a MSFT conference but it's probably available for download. I don't see it on MSDN, but it must be around someplace.

Jay
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ggg | last post by:
I'm looking for a complete project/application done with heavy use of of object-oriented programming & design. Preferably something well documented and/or commented so that I can pick it apart...
15
by: Randall Smith | last post by:
I've been programming in Python for about 2 years. I think it offers the best combination of simplicity and power of any language I have explored. As I write more and larger and complex programs,...
13
by: John Salerno | last post by:
Here are a few I'm considering: Design Patterns Explained : A New Perspective on Object-Oriented Design (2nd Edition) (Software Patterns Series) by Alan Shalloway Design Patterns C# by...
24
by: Gaijinco | last post by:
I found one of that problems all of us have solve when they begin programming: given 3 numbers print the greater and the lesser one of the set. I was trying to remember the if-then-else...
5
by: macca | last post by:
Hi, I'm looking for a good book on PHP design patterns for a OOP beginner - Reccommendations please? Thanks Paul
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.