Book a Demo

Author Topic: Working C# example of addin using AddWindow?  (Read 5422 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Working C# example of addin using AddWindow?
« on: June 29, 2011, 05:20:12 pm »
Hi,

Does anyone have a working C# example of an add-in using the repository.AddWindow() functionality?
I'm having a bit of trouble getting the this functionality to work.

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Working C# example of addin using AddWindow?
« Reply #1 on: June 30, 2011, 05:52:50 pm »
Hi,

I got it working.
I had set the default constructor for my control private, which prevented it to be registered in COM.
Making the default constructor public solved the issue.

I hope to be able to publish a working example myself in a couple of days.

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Working C# example of addin using AddWindow?
« Reply #2 on: July 07, 2011, 01:40:30 pm »
Since no-one had something available I've published my own example at
https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework

Geert