wintin Forum Index wintin
Wintin Discussion Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Addins with Boo

 
Post new topic   Reply to topic    wintin Forum Index -> Addins
View previous topic :: View next topic  
Author Message
Fausti



Joined: 24 Jan 2006
Posts: 4

PostPosted: Tue Jan 24, 2006 12:34 am    Post subject: Addins with Boo Reply with quote

I figured out, how to code the example addin in the Boo language (took me two days, because I never worked with the .NET Framework before Wink

Code:

namespace BooTestAddin

import System
import ScriptEngine
import ICSharpCode.Core.Services

class Class1(AbstractService, ICommand):
   interpreter as Interpreter
   
   def constructor():
      self.Initialize += EventHandler(Test_Initialize)
      
   def Test_Initialize(sender as Object, e as EventArgs):      
      interpreter = ServiceManager.Services.GetService(Interpreter)
   
   def HandleMenuItem():
      self.interpreter.Display(Environment.NewLine + "AddinTest Menu Item Selected" + Environment.NewLine)
   
   def ProcessCommand(verb as String, args as String):
      self.interpreter.Display(Environment.NewLine + "Command ${verb} called with arguments ${args}" + Environment.NewLine)

class MenuTest(AbstractMenuCommand):
   def constructor():
      pass
      
   def Run(sender as Object, args as System.EventArgs):
      class1 as Class1 = ServiceManager.Services.GetService(Class1)
      class1.HandleMenuItem()


Ok, coding in VB.Net doesn't look to be that hard, but as I'm a fan of Python, I think Boo is the right language for me to code wintin addins.

P.S.: Wintin.Net seems to be the mud client, I was always looking for Smile GOOD WORK!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    wintin Forum Index -> Addins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group