Skip to content

Commit 9851b07

Browse files
iSazonovadityapatwardhan
authored andcommitted
Fix style issues (PowerShell#10998)
1 parent 08e120c commit 9851b07

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1230
-920
lines changed

src/Microsoft.Management.UI.Internal/CommonHelper.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
namespace Microsoft.Management.UI
1010
{
1111
/// <summary>
12-
/// Utilities in common in this assembly
12+
/// Utilities in common in this assembly.
1313
/// </summary>
1414
internal static class CommonHelper
1515
{
1616
/// <summary>
1717
/// Restore the values from the settings to the actual window position, size and state.
1818
/// </summary>
19-
/// <param name="target">the window we are setting position and size of</param>
20-
/// <param name="userSettingTop">the value for top from the user settings</param>
21-
/// <param name="userSettingLeft">the value for left from the user settings</param>
22-
/// <param name="userSettingWidth">the value for width from the user settings</param>
23-
/// <param name="userSettingHeight">the value for height from the user settings</param>
24-
/// <param name="defaultWidth">the with used if <paramref name="userSettingWidth"/> is not valid</param>
25-
/// <param name="defaultHeight">the height used if <paramref name="userSettingHeight"/> is not valid</param>
26-
/// <param name="userSettingMaximized">true if the window is maximized in the user setting</param>
19+
/// <param name="target">The window we are setting position and size of.</param>
20+
/// <param name="userSettingTop">The value for top from the user settings.</param>
21+
/// <param name="userSettingLeft">The value for left from the user settings.</param>
22+
/// <param name="userSettingWidth">The value for width from the user settings.</param>
23+
/// <param name="userSettingHeight">The value for height from the user settings.</param>
24+
/// <param name="defaultWidth">The with used if <paramref name="userSettingWidth"/> is not valid.</param>
25+
/// <param name="defaultHeight">The height used if <paramref name="userSettingHeight"/> is not valid.</param>
26+
/// <param name="userSettingMaximized">True if the window is maximized in the user setting.</param>
2727
internal static void SetStartingPositionAndSize(Window target, double userSettingTop, double userSettingLeft, double userSettingWidth, double userSettingHeight, double defaultWidth, double defaultHeight, bool userSettingMaximized)
2828
{
2929
bool leftInvalid = userSettingLeft < System.Windows.SystemParameters.VirtualScreenLeft ||

src/Microsoft.Management.UI.Internal/HelpWindow/HelpParagraphBuilder.cs

Lines changed: 77 additions & 77 deletions
Large diffs are not rendered by default.

src/Microsoft.Management.UI.Internal/HelpWindow/HelpViewModel.cs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,45 @@ namespace Microsoft.Management.UI.Internal
1414
/// ViewModel for the Help Dialog used to:
1515
/// build the help document
1616
/// search the help document
17-
/// offer text for labels
17+
/// offer text for labels.
1818
/// </summary>
1919
internal class HelpViewModel : INotifyPropertyChanged
2020
{
2121
/// <summary>
22-
/// The builder for the help FlowDocument Paragraph used in a RichEditText control
22+
/// The builder for the help FlowDocument Paragraph used in a RichEditText control.
2323
/// </summary>
2424
private readonly HelpParagraphBuilder helpBuilder;
2525

2626
/// <summary>
27-
/// Searcher for selecting current matches in paragraph text
27+
/// Searcher for selecting current matches in paragraph text.
2828
/// </summary>
2929
private readonly ParagraphSearcher searcher;
3030

3131
/// <summary>
32-
/// Title of the help window
32+
/// Title of the help window.
3333
/// </summary>
3434
private readonly string helpTitle;
3535

3636
/// <summary>
37-
/// the zoom bound to the zoom slider value
37+
/// the zoom bound to the zoom slider value.
3838
/// </summary>
3939
private double zoom = 100;
4040

4141
/// <summary>
42-
/// Text to be found. This is bound to the find TextBox
42+
/// Text to be found. This is bound to the find TextBox.
4343
/// </summary>
4444
private string findText;
4545

4646
/// <summary>
47-
/// text for the number of matches found
47+
/// text for the number of matches found.
4848
/// </summary>
4949
private string matchesLabel;
5050

5151
/// <summary>
52-
/// Initializes a new instance of the HelpViewModel class
52+
/// Initializes a new instance of the HelpViewModel class.
5353
/// </summary>
54-
/// <param name="psObj">object containing help</param>
55-
/// <param name="documentParagraph">paragraph in which help text is built/searched</param>
54+
/// <param name="psObj">Object containing help.</param>
55+
/// <param name="documentParagraph">Paragraph in which help text is built/searched.</param>
5656
internal HelpViewModel(PSObject psObj, Paragraph documentParagraph)
5757
{
5858
Debug.Assert(psObj != null, "ensured by caller");
@@ -70,13 +70,13 @@ internal HelpViewModel(PSObject psObj, Paragraph documentParagraph)
7070

7171
#region INotifyPropertyChanged Members
7272
/// <summary>
73-
/// Used to notify of property changes
73+
/// Used to notify of property changes.
7474
/// </summary>
7575
public event PropertyChangedEventHandler PropertyChanged;
7676
#endregion
7777

7878
/// <summary>
79-
/// Gets or sets the Zoom bound to the zoom slider value
79+
/// Gets or sets the Zoom bound to the zoom slider value.
8080
/// </summary>
8181
public double Zoom
8282
{
@@ -95,7 +95,7 @@ public double Zoom
9595
}
9696

9797
/// <summary>
98-
/// Gets the value bound to the RichTextEdit zoom, which is calculated based on the zoom
98+
/// Gets the value bound to the RichTextEdit zoom, which is calculated based on the zoom.
9999
/// </summary>
100100
public double ZoomLevel
101101
{
@@ -106,7 +106,7 @@ public double ZoomLevel
106106
}
107107

108108
/// <summary>
109-
/// Gets the label to be displayed for the zoom
109+
/// Gets the label to be displayed for the zoom.
110110
/// </summary>
111111
public string ZoomLabel
112112
{
@@ -117,7 +117,7 @@ public string ZoomLabel
117117
}
118118

119119
/// <summary>
120-
/// Gets or sets the text to be found
120+
/// Gets or sets the text to be found.
121121
/// </summary>
122122
public string FindText
123123
{
@@ -135,7 +135,7 @@ public string FindText
135135
}
136136

137137
/// <summary>
138-
/// Gets the title of the window
138+
/// Gets the title of the window.
139139
/// </summary>
140140
public string HelpTitle
141141
{
@@ -146,7 +146,7 @@ public string HelpTitle
146146
}
147147

148148
/// <summary>
149-
/// Gets or sets the label for current matches
149+
/// Gets or sets the label for current matches.
150150
/// </summary>
151151
public string MatchesLabel
152152
{
@@ -163,7 +163,7 @@ public string MatchesLabel
163163
}
164164

165165
/// <summary>
166-
/// Gets a value indicating whether there are matches to go to
166+
/// Gets a value indicating whether there are matches to go to.
167167
/// </summary>
168168
public bool CanGoToNextOrPrevious
169169
{
@@ -174,15 +174,15 @@ public bool CanGoToNextOrPrevious
174174
}
175175

176176
/// <summary>
177-
/// Gets the searcher for selecting current matches in paragraph text
177+
/// Gets the searcher for selecting current matches in paragraph text.
178178
/// </summary>
179179
internal ParagraphSearcher Searcher
180180
{
181181
get { return this.searcher; }
182182
}
183183

184184
/// <summary>
185-
/// Gets the paragraph builder used to write help content
185+
/// Gets the paragraph builder used to write help content.
186186
/// </summary>
187187
internal HelpParagraphBuilder HelpBuilder
188188
{
@@ -200,7 +200,7 @@ internal void Search()
200200
}
201201

202202
/// <summary>
203-
/// Increases Zoom if not above maximum
203+
/// Increases Zoom if not above maximum.
204204
/// </summary>
205205
internal void ZoomIn()
206206
{
@@ -211,7 +211,7 @@ internal void ZoomIn()
211211
}
212212

213213
/// <summary>
214-
/// Decreases Zoom if not below minimum
214+
/// Decreases Zoom if not below minimum.
215215
/// </summary>
216216
internal void ZoomOut()
217217
{
@@ -222,10 +222,10 @@ internal void ZoomOut()
222222
}
223223

224224
/// <summary>
225-
/// Called to update the matches label
225+
/// Called to update the matches label.
226226
/// </summary>
227-
/// <param name="sender">event sender</param>
228-
/// <param name="e">event arguments</param>
227+
/// <param name="sender">Event sender.</param>
228+
/// <param name="e">Event arguments.</param>
229229
private void HelpBuilder_PropertyChanged(object sender, PropertyChangedEventArgs e)
230230
{
231231
if (e.PropertyName == "HighlightCount")
@@ -236,7 +236,7 @@ private void HelpBuilder_PropertyChanged(object sender, PropertyChangedEventArgs
236236
}
237237

238238
/// <summary>
239-
/// Sets the current matches label
239+
/// Sets the current matches label.
240240
/// </summary>
241241
private void SetMatchesLabel()
242242
{
@@ -268,9 +268,9 @@ private void SetMatchesLabel()
268268
}
269269

270270
/// <summary>
271-
/// Called internally to notify when a proiperty changed
271+
/// Called internally to notify when a proiperty changed.
272272
/// </summary>
273-
/// <param name="propertyName">property name</param>
273+
/// <param name="propertyName">Property name.</param>
274274
private void OnNotifyPropertyChanged(string propertyName)
275275
{
276276
PropertyChangedEventHandler handler = this.PropertyChanged;

0 commit comments

Comments
 (0)