Last change
on this file since 3962 was
2134,
checked in by gkronber, 15 years ago
|
Added up to date source of Weifen Luo dock panel suit in a separate project (and added strong name key). Removed binary versions of Weifen Luo dock panel suite and references to it. #687 (Update AdvancedOptimizationFrontend to use more recent version of Weifen Luo Docking library)
|
File size:
982 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.ComponentModel;
|
---|
3 |
|
---|
4 | namespace WeifenLuo.WinFormsUI.Docking
|
---|
5 | {
|
---|
6 | [AttributeUsage(AttributeTargets.All)]
|
---|
7 | internal sealed class LocalizedDescriptionAttribute : DescriptionAttribute
|
---|
8 | {
|
---|
9 | private bool m_initialized = false;
|
---|
10 |
|
---|
11 | public LocalizedDescriptionAttribute(string key) : base(key)
|
---|
12 | {
|
---|
13 | }
|
---|
14 |
|
---|
15 | public override string Description
|
---|
16 | {
|
---|
17 | get
|
---|
18 | {
|
---|
19 | if (!m_initialized)
|
---|
20 | {
|
---|
21 | string key = base.Description;
|
---|
22 | DescriptionValue = ResourceHelper.GetString(key);
|
---|
23 | if (DescriptionValue == null)
|
---|
24 | DescriptionValue = String.Empty;
|
---|
25 |
|
---|
26 | m_initialized = true;
|
---|
27 | }
|
---|
28 |
|
---|
29 | return DescriptionValue;
|
---|
30 | }
|
---|
31 | }
|
---|
32 | }
|
---|
33 |
|
---|
34 | [AttributeUsage(AttributeTargets.All)]
|
---|
35 | internal sealed class LocalizedCategoryAttribute : CategoryAttribute
|
---|
36 | {
|
---|
37 | public LocalizedCategoryAttribute(string key) : base(key)
|
---|
38 | {
|
---|
39 | }
|
---|
40 |
|
---|
41 | protected override string GetLocalizedString(string key)
|
---|
42 | {
|
---|
43 | return ResourceHelper.GetString(key);
|
---|
44 | }
|
---|
45 | }
|
---|
46 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.