Beispiel #1
0
        /// <summary>
        /// Initialize the language
        /// </summary>
        internal virtual void Initialize()
        {
            Application = new ToolLanguageApplication(this);
            Components = new LocalizableCompoments();

            string space = " - ";
            LocalizableCompoment comp = null;
            comp =  new LocalizableCompoment(this, "Welcome", typeof(ToolboxControls.Welcome.WelcomeControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.Welcome.WelcomeControl).FullName, "Welcome" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Office Compatibility", typeof(ToolboxControls.OfficeCompatibility.OfficeCompatibilityControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.OfficeCompatibility.OfficeCompatibilityControl).FullName, "Office Compatibility" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Application Observer", typeof(ToolboxControls.ApplicationObserver.ApplicationObserverControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.ApplicationObserver.ApplicationObserverControl).FullName, "Application Observer" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Registry Editor", typeof(ToolboxControls.RegistryEditor.RegistryEditorControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.RegistryEditor.RegistryEditorControl).FullName, "Registry Editor" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Addin Guard", typeof(ToolboxControls.AddinGuard.AddinGuardControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.AddinGuard.AddinGuardControl).FullName, "Addin Guard" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Office UI", typeof(ToolboxControls.OfficeUI.OfficeUIControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.OfficeUI.OfficeUIControl).FullName, "Office UI" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Outlook Security", typeof(ToolboxControls.OutlookSecurity.OutlookSecurityControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.OutlookSecurity.OutlookSecurityControl).FullName, "Outlook Security" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }
            comp = new LocalizableCompoment(this, "Project Wizard", typeof(ToolboxControls.ProjectWizard.ProjectWizardControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.ProjectWizard.ProjectWizardControl).FullName, "Project Wizard" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "About", typeof(ToolboxControls.About.AboutControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.About.AboutControl).FullName, "About" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }
        }
        /// <summary>
        /// Initialize the language
        /// </summary>
        internal virtual void Initialize()
        {
            Application = new ToolLanguageApplication(this);
            Components  = new LocalizableCompoments();

            string space = " - ";
            LocalizableCompoment comp = null;

            comp = new LocalizableCompoment(this, "Welcome", typeof(ToolboxControls.Welcome.WelcomeControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.Welcome.WelcomeControl).FullName, "Welcome" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Office Compatibility", typeof(ToolboxControls.OfficeCompatibility.OfficeCompatibilityControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.OfficeCompatibility.OfficeCompatibilityControl).FullName, "Office Compatibility" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Application Observer", typeof(ToolboxControls.ApplicationObserver.ApplicationObserverControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.ApplicationObserver.ApplicationObserverControl).FullName, "Application Observer" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Registry Editor", typeof(ToolboxControls.RegistryEditor.RegistryEditorControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.RegistryEditor.RegistryEditorControl).FullName, "Registry Editor" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Addin Guard", typeof(ToolboxControls.AddinGuard.AddinGuardControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.AddinGuard.AddinGuardControl).FullName, "Addin Guard" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Office UI", typeof(ToolboxControls.OfficeUI.OfficeUIControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.OfficeUI.OfficeUIControl).FullName, "Office UI" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "Outlook Security", typeof(ToolboxControls.OutlookSecurity.OutlookSecurityControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.OutlookSecurity.OutlookSecurityControl).FullName, "Outlook Security" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }
            comp = new LocalizableCompoment(this, "Project Wizard", typeof(ToolboxControls.ProjectWizard.ProjectWizardControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.ProjectWizard.ProjectWizardControl).FullName, "Project Wizard" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }

            comp = new LocalizableCompoment(this, "About", typeof(ToolboxControls.About.AboutControl));
            Components.Add(comp);
            foreach (var item in (comp.Design as ILocalizationDesign).Childs)
            {
                comp = new LocalizableCompoment(this, typeof(ToolboxControls.About.AboutControl).FullName, "About" + space + item.NameLocalization, item.TypeLocalization);
                Components.Add(comp);
            }
        }