コード例 #1
0
 public void Deactivated()
 {
     InnerInstance.Deactivated();
     if (InnerInstance.SupportsHelpContent)
     {
         controlBackColorAnimator1.Start(false);
     }
 }
コード例 #2
0
 public void Activate(bool firstTime)
 {
     buttonInfo.Visible = InnerInstance.SupportsHelpContent;
     InnerInstance.Activate(firstTime);
     if (InnerInstance.SupportsHelpContent)
     {
         controlBackColorAnimator1.Start(false);
     }
     SetupInfoMessage();
 }
コード例 #3
0
 private void buttonInfo_Click(object sender, EventArgs e)
 {
     try
     {
         Stream      stream  = InnerInstance.GetHelpText(InnerInstance.Host.CurrentLanguageID);
         InfoControl infoBox = new InfoControl(stream);
         this.Controls.Add(infoBox);
         infoBox.BringToFront();
         infoBox.Show();
         stream.Close();
         stream.Dispose();
     }
     catch (Exception exception)
     {
         Forms.ErrorForm.ShowError(this, exception, ErrorCategory.NonCritical, InnerInstance.Host.CurrentLanguageID);
     }
 }
コード例 #4
0
        public void SetLanguage(int id)
        {
            Translation.ToolLanguage language = Host.Languages.Where(l => l.LCID == id).FirstOrDefault();
            if (null != language)
            {
                string space     = InnerInstance.ControlName.Substring(0, InnerInstance.ControlName.IndexOf("."));
                var    component = language.Components[space];
                Translation.Translator.TranslateControls(InnerInstance as Control, component.ControlResources);
            }
            else
            {
                string space = InnerInstance.ControlName.Substring(0, InnerInstance.ControlName.IndexOf("."));
                Translation.Translator.TranslateControls(InnerInstance as Control, String.Format("ToolboxControls.{0}.Strings.txt", space), id);
            }

            InnerInstance.SetLanguage(id);
            SetupInfoMessage();
        }
コード例 #5
0
 public void SaveConfiguration(System.Xml.XmlNode configNode)
 {
     InnerInstance.SaveConfiguration(configNode);
 }
コード例 #6
0
 public void LoadConfiguration(System.Xml.XmlNode configNode)
 {
     InnerInstance.LoadConfiguration(configNode);
 }
コード例 #7
0
 internal static LazyAsset?ImportLazyInner(string assetType, Stream stream, string targetPath, string name,
                                           Permissions perm, string sourcePath, params object[] args)
 {
     return((LazyAsset?)InnerInstance.Import(assetType, false, true, stream, targetPath, name, perm, sourcePath, args));
 }
コード例 #8
0
 public string GetCurrentText(string name)
 {
     return(InnerInstance.GetCurrentText(name));
 }
コード例 #9
0
 public void Localize(Translation.ItemCollection strings)
 {
     InnerInstance.Localize(strings);
 }
コード例 #10
0
 public void Release()
 {
     InnerInstance.Release();
 }
コード例 #11
0
 public Stream GetHelpText()
 {
     return(InnerInstance.GetHelpText());
 }
コード例 #12
0
 internal static TAsset?GetAssetInner <TAsset>(string targetPath) where TAsset : Asset
 {
     return((TAsset?)InnerInstance.GetAsset(targetPath));
 }
コード例 #13
0
 internal static Asset?GetAssetInner(string targetPath)
 {
     return(InnerInstance.GetAsset(targetPath));
 }
コード例 #14
0
 internal static void RegisterAssetTypeInner(string type, string subtype, string[] fileExtensions, HandlerFunc handler)
 {
     InnerInstance.RegisterAsset(type, subtype, fileExtensions, handler);
 }
コード例 #15
0
 public static string?GetTypeFromFileExtension(string fileName)
 {
     return(InnerInstance.GetTypeFromFileExtension(fileName));
 }
コード例 #16
0
 public Stream GetHelpText(int lcid)
 {
     return(InnerInstance.GetHelpText(lcid));
 }
コード例 #17
0
 public new void KeyDown(KeyEventArgs e)
 {
     InnerInstance.KeyDown(e);
 }
コード例 #18
0
 public void InitializeControl(IToolboxHost host)
 {
     InnerInstance.InitializeControl(host);
 }
コード例 #19
0
 public void EnableDesignView(int lcid, string parentComponentName)
 {
     InnerInstance.EnableDesignView(lcid, parentComponentName);
 }
コード例 #20
0
 public void Activate(bool firstTime)
 {
     buttonInfo.Visible = InnerInstance.SupportsHelpContent;
     InnerInstance.Activate(firstTime);
     SetupInfoMessage();
 }
コード例 #21
0
 public void Localize(string name, string text)
 {
     InnerInstance.Localize(name, text);
 }
コード例 #22
0
 public void Deactivated()
 {
     InnerInstance.Deactivated();
 }
コード例 #23
0
 public void LoadComplete()
 {
     InnerInstance.LoadComplete();
 }
コード例 #24
0
 internal static LazyAsset?ImportLazyInner(string assetType, bool createOnFail, string targetPath, string name, Permissions perm, string sourcePath, params object[] args)
 {
     return((LazyAsset?)InnerInstance.Import(assetType, createOnFail, true, null, targetPath, name, perm, sourcePath, args));
 }