public void Deactivated() { InnerInstance.Deactivated(); if (InnerInstance.SupportsHelpContent) { controlBackColorAnimator1.Start(false); } }
public void Activate(bool firstTime) { buttonInfo.Visible = InnerInstance.SupportsHelpContent; InnerInstance.Activate(firstTime); if (InnerInstance.SupportsHelpContent) { controlBackColorAnimator1.Start(false); } SetupInfoMessage(); }
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); } }
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(); }
public void SaveConfiguration(System.Xml.XmlNode configNode) { InnerInstance.SaveConfiguration(configNode); }
public void LoadConfiguration(System.Xml.XmlNode configNode) { InnerInstance.LoadConfiguration(configNode); }
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)); }
public string GetCurrentText(string name) { return(InnerInstance.GetCurrentText(name)); }
public void Localize(Translation.ItemCollection strings) { InnerInstance.Localize(strings); }
public void Release() { InnerInstance.Release(); }
public Stream GetHelpText() { return(InnerInstance.GetHelpText()); }
internal static TAsset?GetAssetInner <TAsset>(string targetPath) where TAsset : Asset { return((TAsset?)InnerInstance.GetAsset(targetPath)); }
internal static Asset?GetAssetInner(string targetPath) { return(InnerInstance.GetAsset(targetPath)); }
internal static void RegisterAssetTypeInner(string type, string subtype, string[] fileExtensions, HandlerFunc handler) { InnerInstance.RegisterAsset(type, subtype, fileExtensions, handler); }
public static string?GetTypeFromFileExtension(string fileName) { return(InnerInstance.GetTypeFromFileExtension(fileName)); }
public Stream GetHelpText(int lcid) { return(InnerInstance.GetHelpText(lcid)); }
public new void KeyDown(KeyEventArgs e) { InnerInstance.KeyDown(e); }
public void InitializeControl(IToolboxHost host) { InnerInstance.InitializeControl(host); }
public void EnableDesignView(int lcid, string parentComponentName) { InnerInstance.EnableDesignView(lcid, parentComponentName); }
public void Activate(bool firstTime) { buttonInfo.Visible = InnerInstance.SupportsHelpContent; InnerInstance.Activate(firstTime); SetupInfoMessage(); }
public void Localize(string name, string text) { InnerInstance.Localize(name, text); }
public void Deactivated() { InnerInstance.Deactivated(); }
public void LoadComplete() { InnerInstance.LoadComplete(); }
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)); }