Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Register own service

$
0
0

Hi forum,

what is the best way to pass a model with data from the main package class (where it gets instantiated, populated with data and the model is need here, too) to a ToolWindow?

Until know the model is a singleton. Are there other ways?

Is it for example possible to register an instance in the way, so that it is accessible through the Package.GetGlobalService() method? Or something else?

Bye,
Traidor


The Visual Studio Settings-Switcher! Visit http://visualstudiogallery.msdn.microsoft.com/a79072f7-3109-44a0-95c0-9c50e729d6a3


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>