[MonoDevelop] Accessing GUI Commands

Scott Ellington scottellington at comcast.net
Fri Sep 23 15:13:26 EDT 2005

I basically had the answer.  Thanks to Christian for that last nudge.
Here is how you do it:



On Fri, 2005-09-23 at 12:31 -0400, Scott Ellington wrote:
> All,
> I have been trying unsuccessfully to access certain GUI commands from my
> add-in.  The main one is the NewProject command which pops up the
> NewProjectDialog.
> I have been scouring the source code trying to figure how to run this
> command.  It seems that I would need to use
> Runtime.Gui.CommandService.CommandManager.DispatchCommand to do it, but
> I would then need the CommandId key which is of type System.Object and I
> don't know how to get it.
> Does anyone have any hints?  Is there an easier way to access this
> functionality?
> thanks,
> Scott
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
Scott Ellington <scottellington at comcast.net>

More information about the Monodevelop-list mailing list