aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/LocalizedControl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/LocalizedControl.cs')
-rw-r--r--src/WixToolset.Data/LocalizedControl.cs26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/WixToolset.Data/LocalizedControl.cs b/src/WixToolset.Data/LocalizedControl.cs
index 50315b29..979f9fde 100644
--- a/src/WixToolset.Data/LocalizedControl.cs
+++ b/src/WixToolset.Data/LocalizedControl.cs
@@ -18,30 +18,27 @@ namespace WixToolset.Data
18 this.Text = text; 18 this.Text = text;
19 } 19 }
20 20
21 public string Dialog { get; set; } 21 public string Dialog { get; }
22 22
23 public string Control { get; set; } 23 public string Control { get; }
24 24
25 public int X { get; private set; } 25 public int X { get; }
26 26
27 public int Y { get; private set; } 27 public int Y { get; }
28 28
29 public int Width { get; private set; } 29 public int Width { get; }
30 30
31 public int Height { get; private set; } 31 public int Height { get; }
32 32
33 public int Attributes { get; private set; } 33 public int Attributes { get; }
34 34
35 public string Text { get; private set; } 35 public string Text { get; }
36 36
37 /// <summary> 37 /// <summary>
38 /// Get key for a localized control. 38 /// Get key for a localized control.
39 /// </summary> 39 /// </summary>
40 /// <returns>The localized control id.</returns> 40 /// <returns>The localized control id.</returns>
41 public string GetKey() 41 public string GetKey() => LocalizedControl.GetKey(this.Dialog, this.Control);
42 {
43 return LocalizedControl.GetKey(this.Dialog, this.Control);
44 }
45 42
46 /// <summary> 43 /// <summary>
47 /// Get key for a localized control. 44 /// Get key for a localized control.
@@ -49,9 +46,6 @@ namespace WixToolset.Data
49 /// <param name="dialog">The optional id of the control's dialog.</param> 46 /// <param name="dialog">The optional id of the control's dialog.</param>
50 /// <param name="control">The id of the control.</param> 47 /// <param name="control">The id of the control.</param>
51 /// <returns>The localized control id.</returns> 48 /// <returns>The localized control id.</returns>
52 public static string GetKey(string dialog, string control) 49 public static string GetKey(string dialog, string control) => String.Concat(dialog, "/", control);
53 {
54 return String.Concat(String.IsNullOrEmpty(dialog) ? String.Empty : dialog, "/", String.IsNullOrEmpty(control) ? String.Empty : control);
55 }
56 } 50 }
57} 51}