All entries for Sunday 02 October 2005

October 02, 2005

More CommandProvider Development

Follow-up to Application Command Provider from codeMonkey.Weblog();

Following my last post: link about the CommandProvider component I'm working on.

I decided today that having commands only available to a single form was too limited! So I enhanced the CommandCollection with a static Instance property, thus providing an AppDomain level collection of commands. In addition I added the UseGlobalCommands property to the CommandProvider. When set to true (the default) the CommandProvider's Commands property returns the CommandCollection static instance. (When false the component uses its own private CommandCollection instead.)

As a result I can have UI controls on different forms linked to the same command. In addition, a CommandProvider can be instanced in code, for example inside the static entry point of the application, and then application level commands (such as Exit) can be handled outside of any particular form.

The next job is to complete documentation of the code. I may also enhance the custom CodeDomSerializer to better format Command objects in code, so as to avoid using binary resources in the form.

Google Ads

Search this blog

Most recent comments

  • I scratched my eye while i was holding some kind of plastic packaging.. Anyways the corner of the pl… by Ercan on this entry
  • About a year ago my contacts that i was wearing, i guess were fautly, because shortly after they wer… by Jon on this entry
  • I got shower gel in my eye 4 and a half days ago, and becasue i rubbed my eyes a lot, i have scratch… by Chris on this entry
  • This website may help–health/tc/Eye–Injuries–Home–Treatment by S on this entry
  • I somehow got dirt, or debris in my eye. The terrible pain sent me in a tailspin. I was afraid of sa… by Bobbi on this entry


October 2005

Mo Tu We Th Fr Sa Su
Sep |  Today  | Nov
               1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30


Blog archive

Not signed in
Sign in

Powered by BlogBuilder