toast notifications(+) #17

Merged
mshafer1 merged 41 commits from dev/toast_notifications_plus into master 2025-02-11 04:53:56 -05:00
7 changed files with 708 additions and 15 deletions
Showing only changes of commit 1ae481b434 - Show all commits

View File

@@ -28,90 +28,90 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
tbTitle = new System.Windows.Forms.TextBox(); TxBTitle = new System.Windows.Forms.TextBox();
button1 = new System.Windows.Forms.Button(); ButtonClose = new System.Windows.Forms.Button();
tbMessage = new System.Windows.Forms.RichTextBox(); TxBMessage = new System.Windows.Forms.RichTextBox();
iconBox = new System.Windows.Forms.PictureBox(); IconBox = new System.Windows.Forms.PictureBox();
progressBar1 = new System.Windows.Forms.ProgressBar(); ProgressBar1 = new System.Windows.Forms.ProgressBar();
lbTimeout = new System.Windows.Forms.Label(); LblTimeout = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)iconBox).BeginInit(); ((System.ComponentModel.ISupportInitialize)IconBox).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// tbTitle // TxBTitle
// //
tbTitle.BackColor = System.Drawing.SystemColors.ControlDark; TxBTitle.BackColor = System.Drawing.SystemColors.ControlDark;
tbTitle.BorderStyle = System.Windows.Forms.BorderStyle.None; TxBTitle.BorderStyle = System.Windows.Forms.BorderStyle.None;
tbTitle.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); TxBTitle.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
tbTitle.ForeColor = System.Drawing.SystemColors.ControlLightLight; TxBTitle.ForeColor = System.Drawing.SystemColors.ControlLightLight;
tbTitle.Location = new System.Drawing.Point(54, 13); TxBTitle.Location = new System.Drawing.Point(54, 13);
tbTitle.Name = "tbTitle"; TxBTitle.Name = "TxBTitle";
tbTitle.ReadOnly = true; TxBTitle.ReadOnly = true;
tbTitle.Size = new System.Drawing.Size(683, 32); TxBTitle.Size = new System.Drawing.Size(683, 32);
tbTitle.TabIndex = 0; TxBTitle.TabIndex = 0;
tbTitle.MouseDown += window_MouseDown; TxBTitle.MouseDown += window_MouseDown;
// //
// button1 // ButtonClose
// //
button1.BackColor = System.Drawing.SystemColors.ActiveCaptionText; ButtonClose.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; ButtonClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
button1.FlatAppearance.BorderColor = System.Drawing.Color.White; ButtonClose.FlatAppearance.BorderColor = System.Drawing.Color.White;
button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Silver; ButtonClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Silver;
button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; ButtonClose.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
button1.ForeColor = System.Drawing.SystemColors.ButtonFace; ButtonClose.ForeColor = System.Drawing.SystemColors.ButtonFace;
button1.Location = new System.Drawing.Point(759, 7); ButtonClose.Location = new System.Drawing.Point(759, 7);
button1.Name = "button1"; ButtonClose.Name = "ButtonClose";
button1.Size = new System.Drawing.Size(29, 38); ButtonClose.Size = new System.Drawing.Size(29, 38);
button1.TabIndex = 1; ButtonClose.TabIndex = 1;
button1.Text = "X"; ButtonClose.Text = "X";
button1.UseVisualStyleBackColor = false; ButtonClose.UseVisualStyleBackColor = false;
button1.Click += btnClose_Click; ButtonClose.Click += ButtonClose_ClickHandler;
// //
// tbMessage // TxBMessage
// //
tbMessage.BackColor = System.Drawing.SystemColors.ControlDark; TxBMessage.BackColor = System.Drawing.SystemColors.ControlDark;
tbMessage.BorderStyle = System.Windows.Forms.BorderStyle.None; TxBMessage.BorderStyle = System.Windows.Forms.BorderStyle.None;
tbMessage.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); TxBMessage.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
tbMessage.ForeColor = System.Drawing.SystemColors.ControlLightLight; TxBMessage.ForeColor = System.Drawing.SystemColors.ControlLightLight;
tbMessage.Location = new System.Drawing.Point(12, 57); TxBMessage.Location = new System.Drawing.Point(12, 57);
tbMessage.Name = "tbMessage"; TxBMessage.Name = "TxBMessage";
tbMessage.ReadOnly = true; TxBMessage.ReadOnly = true;
tbMessage.Size = new System.Drawing.Size(776, 191); TxBMessage.Size = new System.Drawing.Size(776, 191);
tbMessage.TabIndex = 2; TxBMessage.TabIndex = 2;
tbMessage.Text = ""; TxBMessage.Text = "";
tbMessage.MouseDown += window_MouseDown; TxBMessage.MouseDown += window_MouseDown;
// //
// iconBox // IconBox
// //
iconBox.Location = new System.Drawing.Point(12, 12); IconBox.Location = new System.Drawing.Point(12, 12);
iconBox.Name = "iconBox"; IconBox.Name = "IconBox";
iconBox.Size = new System.Drawing.Size(36, 39); IconBox.Size = new System.Drawing.Size(36, 39);
iconBox.TabIndex = 3; IconBox.TabIndex = 3;
iconBox.TabStop = false; IconBox.TabStop = false;
// //
// progressBar1 // ProgressBar1
// //
progressBar1.BackColor = System.Drawing.SystemColors.ControlDarkDark; ProgressBar1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
progressBar1.Enabled = false; ProgressBar1.Enabled = false;
progressBar1.ForeColor = System.Drawing.SystemColors.WindowFrame; ProgressBar1.ForeColor = System.Drawing.SystemColors.WindowFrame;
progressBar1.Location = new System.Drawing.Point(70, 254); ProgressBar1.Location = new System.Drawing.Point(70, 254);
progressBar1.MarqueeAnimationSpeed = 1; ProgressBar1.MarqueeAnimationSpeed = 1;
progressBar1.Name = "progressBar1"; ProgressBar1.Name = "ProgressBar1";
progressBar1.Size = new System.Drawing.Size(718, 23); ProgressBar1.Size = new System.Drawing.Size(718, 23);
progressBar1.Step = 1; ProgressBar1.Step = 1;
progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous; ProgressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
progressBar1.TabIndex = 4; ProgressBar1.TabIndex = 4;
progressBar1.Value = 100; ProgressBar1.Value = 100;
// //
// lbTimeout // LblTimeout
// //
lbTimeout.AutoSize = true; LblTimeout.AutoSize = true;
lbTimeout.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); LblTimeout.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
lbTimeout.Location = new System.Drawing.Point(21, 254); LblTimeout.Location = new System.Drawing.Point(21, 254);
lbTimeout.Name = "lbTimeout"; LblTimeout.Name = "LblTimeout";
lbTimeout.Size = new System.Drawing.Size(43, 17); LblTimeout.Size = new System.Drawing.Size(43, 17);
lbTimeout.TabIndex = 5; LblTimeout.TabIndex = 5;
lbTimeout.Text = "label1"; LblTimeout.Text = "label1";
lbTimeout.TextAlign = System.Drawing.ContentAlignment.TopRight; LblTimeout.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// NotificationDialog // NotificationDialog
// //
@@ -119,28 +119,28 @@
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.SystemColors.ControlDark; BackColor = System.Drawing.SystemColors.ControlDark;
ClientSize = new System.Drawing.Size(800, 289); ClientSize = new System.Drawing.Size(800, 289);
Controls.Add(lbTimeout); Controls.Add(LblTimeout);
Controls.Add(progressBar1); Controls.Add(ProgressBar1);
Controls.Add(iconBox); Controls.Add(IconBox);
Controls.Add(tbMessage); Controls.Add(TxBMessage);
Controls.Add(button1); Controls.Add(ButtonClose);
Controls.Add(tbTitle); Controls.Add(TxBTitle);
FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
Name = "NotificationDialog"; Name = "NotificationDialog";
Text = "NotificationDialog"; Text = "NotificationDialog";
Click += window_MouseDown; Click += window_MouseDown;
((System.ComponentModel.ISupportInitialize)iconBox).EndInit(); ((System.ComponentModel.ISupportInitialize)IconBox).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.TextBox tbTitle; private System.Windows.Forms.TextBox TxBTitle;
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button ButtonClose;
private System.Windows.Forms.RichTextBox tbMessage; private System.Windows.Forms.RichTextBox TxBMessage;
private System.Windows.Forms.PictureBox iconBox; private System.Windows.Forms.PictureBox IconBox;
private System.Windows.Forms.ProgressBar progressBar1; private System.Windows.Forms.ProgressBar ProgressBar1;
private System.Windows.Forms.Label lbTimeout; private System.Windows.Forms.Label LblTimeout;
} }
} }

View File

@@ -39,10 +39,10 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
} }
// setup data // setup data
iconBox.Image = (icon is null) ? null : ConvertToolTipIconToImage(icon.Value); IconBox.Image = (icon is null) ? null : ConvertToolTipIconToImage(icon.Value);
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
tbTitle.Text = title; TxBTitle.Text = title;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:54 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:05 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
tbMessage.Text = message; TxBMessage.Text = message;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
// setup timers // setup timers
if (_displayTimeoutTimer != null) if (_displayTimeoutTimer != null)
@@ -65,7 +65,7 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
if (showTimeOutBar) if (showTimeOutBar)
{ {
alexhorner commented 2024-12-21 06:10:16 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
mshafer1 commented 2024-12-21 11:07:29 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
progressBar1.Value = 100; ProgressBar1.Value = 100;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
_updateTimer = new System.Windows.Forms.Timer(); _updateTimer = new System.Windows.Forms.Timer();
_updateTimer.Interval = 100; _updateTimer.Interval = 100;
_updateTimer.Tick += UpdateProgress; _updateTimer.Tick += UpdateProgress;
@@ -74,20 +74,20 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
_shownStopwatch = new Stopwatch(); _shownStopwatch = new Stopwatch();
_shownStopwatch.Start(); _shownStopwatch.Start();
progressBar1.Visible = true; ProgressBar1.Visible = true;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
lbTimeout.Visible = true; LblTimeout.Visible = true;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
_timeout = timeout_ms; _timeout = timeout_ms;
} }
else else
{ {
progressBar1.Visible = false; ProgressBar1.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
lbTimeout.Visible = false; LblTimeout.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
} }
} }
else else
{ {
progressBar1.Visible = false; ProgressBar1.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
lbTimeout.Visible = false; LblTimeout.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
} }
// ok, show the window // ok, show the window
@@ -99,8 +99,8 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{ {
if (_shownStopwatch is null) return; if (_shownStopwatch is null) return;
alexhorner commented 2025-01-11 05:00:52 -05:00 (Migrated from github.com)
Review

Nitpick: One liner & newline

SetWindowPosition();

if (playNotificationSound) PlayNotificationSound();
Nitpick: One liner & newline ```csharp SetWindowPosition(); if (playNotificationSound) PlayNotificationSound(); ```
mshafer1 commented 2025-01-11 09:58:06 -05:00 (Migrated from github.com)
Review

applied

applied
progressBar1.Value = (int)((_timeout - _shownStopwatch.ElapsedMilliseconds) * 100 / _timeout); ProgressBar1.Value = (int)((_timeout - _shownStopwatch.ElapsedMilliseconds) * 100 / _timeout);
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
lbTimeout.Text = $"{(int)(_timeout - _shownStopwatch.ElapsedMilliseconds) / 1000}"; LblTimeout.Text = $"{(int)(_timeout - _shownStopwatch.ElapsedMilliseconds) / 1000}";
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
} }
protected override void SetVisibleCore(bool value) protected override void SetVisibleCore(bool value)
@@ -174,7 +174,7 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
Opacity = 1; Opacity = 1;
} }
private void btnClose_Click(object sender, EventArgs e) private void ButtonClose_ClickHandler(object sender, EventArgs e)
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:59 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:37 -05:00 (Migrated from github.com)
Review

I added a blank line before the call to the parent class

I added a blank line before the call to the parent class
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{ {
// don't animate, immediately "close" // don't animate, immediately "close"
Visible = false; Visible = false;
@@ -202,15 +202,15 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
// on a background thread, so invoke on the UI thread // on a background thread, so invoke on the UI thread
Invoke(new Action(() => Invoke(new Action(() =>
{ {
lbTimeout.Visible = false; LblTimeout.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
progressBar1.Visible = false; ProgressBar1.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
})); }));
} }
else else
{ {
// in the UI thread, invoke directly // in the UI thread, invoke directly
lbTimeout.Visible = false; LblTimeout.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
progressBar1.Visible = false; ProgressBar1.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
} }
if (_displayTimeoutTimer != null) // check if the timer has already been disposed if (_displayTimeoutTimer != null) // check if the timer has already been disposed
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).