Forum  Core :: SDK (Vi...  Install It!  Referenced satellite assemblies in a Plugin-application environment
Previous Previous
 
Next Next
New Post 7/16/2008 6:30 AM
  lucadellanna
9 posts
No Ranking


Re: Referenced satellite assemblies in a Plugin-application environment 
hi,

i've sent it again.

In case of problems, you can find the source code here:

http://isotope.altervista.org/ReferencingPluginsTest.zip
http://isotope.altervista.org/ReferencingPluginsTest.rar


Can you please notify me if you succesfully access to the code?

Luca.
 
New Post 7/20/2008 3:51 AM
  ori.cohen
4390 posts
1st Level Poster




Re: Referenced satellite assemblies in a Plugin-application environment 
Hello Luca!

I got the e-mail you sent to our support mail system and was able to access the code inside.

Regards,

Ori Cohen
The Visual WebGui team
 
New Post 7/21/2008 12:59 AM
  lucadellanna
9 posts
No Ranking


Re: Referenced satellite assemblies in a Plugin-application environment 
Hello!

Thank you kindly , looking forward for your support.

Have a good day.
Luca.
 
New Post 3/21/2011 2:55 PM
  lmp014
84 posts
No Ranking


Re: Referenced satellite assemblies in a Plugin-application environment 

Hi,

This plugin solution is attracting me. I know I'm a bit late(the thread being from 2008), but do you still have this source code available, or any sample going in that direction ?

I would really like to have an opportunity to have a look at it becauseI have some thoughs for developing a plugin based VWG App.

Instead of reinventing the wheel ...

 

Regards.

 
New Post 3/26/2011 8:36 AM
  palli
11824 posts
1st Level Poster




Re: Referenced satellite assemblies in a Plugin-application environment 

Hi Imp014,

Gizmox's support can't share those sources without the permission of Luca, and as the request was processed quite some time ago, I doubt that we still have it. Let's hope Luca is watching and will respond to your request.

In case it helps, we did have some code in a sample once that was something in that direction. In that very simple sample, we had forms instead of UserControls and we switched context between the forms, but similar idea can be used for usercontrols. The "menu" form picked up all the existing forms runtime, and the code that picked up the forms and created their instance was the following:

 

        private void Form1_Load(object sender, EventArgs e)
        {
            LinkLabel objLinkLabel = null;
            int intLinkLabelTop = 20;
 
            foreach(Type objType in Assembly.GetExecutingAssembly().GetTypes())
            {
                if (objType.Name.EndsWith("Form") && !(objType.Name.Equals("Form1")))
                {
                    objLinkLabel = new LinkLabel(objType.Name);
                    objLinkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkLabel_LinkClicked);
                    objLinkLabel.Location = new Point(20, intLinkLabelTop);
                    intLinkLabelTop += 37;
                    this.Controls.Add(objLinkLabel);
                }
            }
        }
 
        protected virtual void LinkLabel_LinkClicked(object sender, EventArgs e)
        {
            LinkLabel objLinkLabel = sender as LinkLabel;
            if (objLinkLabel == null)
            {
                return;
            }
            Gizmox.WebGUI.Forms.Form objForm = Activator.CreateInstance(Type.GetType("WrapperExample." + objLinkLabel.Text + ", WrapperExample")) as Form;
            if (objForm != null)
            {
                this.Context.Transfer(objForm);
            }
        }

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Install It!  Referenced satellite assemblies in a Plugin-application environment
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS