Download data/DWSIM.Controls.DockPanel/WinFormsUI/Docking/Localization.cs from introvoyz041/Dwsim: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.DockPanel/WinFormsUI/Docking/Localization.cs
- Command line
-
hf download hf://datasets/introvoyz041/Dwsim/data/DWSIM.Controls.DockPanel/WinFormsUI/Docking/Localization.cs
-
curl -L -o Localization.cs https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.DockPanel/WinFormsUI/Docking/Localization.cs
1.2 kB
| using System; | |
| using System.ComponentModel; | |
| namespace WeifenLuo.WinFormsUI.Docking | |
| { | |
| [] | |
| internal sealed class LocalizedDescriptionAttribute : DescriptionAttribute | |
| { | |
| private bool m_initialized = false; | |
| public LocalizedDescriptionAttribute(string key) : base(key) | |
| { | |
| } | |
| public override string Description | |
| { | |
| get | |
| { | |
| if (!m_initialized) | |
| { | |
| string key = base.Description; | |
| DescriptionValue = ResourceHelper.GetString(key); | |
| if (DescriptionValue == null) | |
| DescriptionValue = String.Empty; | |
| m_initialized = true; | |
| } | |
| return DescriptionValue; | |
| } | |
| } | |
| } | |
| [] | |
| internal sealed class LocalizedCategoryAttribute : CategoryAttribute | |
| { | |
| public LocalizedCategoryAttribute(string key) : base(key) | |
| { | |
| } | |
| protected override string GetLocalizedString(string key) | |
| { | |
| return ResourceHelper.GetString(key); | |
| } | |
| } | |
| } | |