more CamelCasing

This commit is contained in:
mshafer1
2024-12-21 08:18:35 -06:00
parent be0db848dc
commit fc3275442c
2 changed files with 5 additions and 5 deletions

View File

@@ -160,7 +160,7 @@ namespace ntfysh_client
useCustomTrayNotifications.TabStop = true; useCustomTrayNotifications.TabStop = true;
useCustomTrayNotifications.Text = "Use ntfysh-windows custom tray notifications"; useCustomTrayNotifications.Text = "Use ntfysh-windows custom tray notifications";
useCustomTrayNotifications.UseVisualStyleBackColor = true; useCustomTrayNotifications.UseVisualStyleBackColor = true;
useCustomTrayNotifications.CheckedChanged += useCustomTrayNotifications_CheckedChanged; useCustomTrayNotifications.CheckedChanged += UseCustomTrayNotifications_CheckedChanged;
// //
// useNativeWindowsNotifications // useNativeWindowsNotifications
// //

View File

@@ -61,7 +61,7 @@ namespace ntfysh_client
public SettingsDialog() public SettingsDialog()
{ {
InitializeComponent(); InitializeComponent();
setNotificationsUIElements(); SetNotificationsUIElements();
} }
private void saveButton_Click(object sender, EventArgs e) private void saveButton_Click(object sender, EventArgs e)
@@ -74,16 +74,16 @@ namespace ntfysh_client
DialogResult = DialogResult.Cancel; DialogResult = DialogResult.Cancel;
} }
private void setNotificationsUIElements() private void SetNotificationsUIElements()
{ {
groupCustomNotificationSettings.Enabled = useCustomTrayNotifications.Checked; groupCustomNotificationSettings.Enabled = useCustomTrayNotifications.Checked;
timeoutLabel.Text = useCustomTrayNotifications.Checked ? _customNotificationsTimeout : _windowsNotificationsTimeout; timeoutLabel.Text = useCustomTrayNotifications.Checked ? _customNotificationsTimeout : _windowsNotificationsTimeout;
timeout.Minimum = useCustomTrayNotifications.Checked ? -1 : 0; timeout.Minimum = useCustomTrayNotifications.Checked ? -1 : 0;
} }
private void useCustomTrayNotifications_CheckedChanged(object sender, EventArgs e) private void UseCustomTrayNotifications_CheckedChanged(object sender, EventArgs e)
{ {
setNotificationsUIElements(); SetNotificationsUIElements();
} }
private const string _windowsNotificationsTimeout = "Notification Toast Timeout (seconds, may be ignored by OS based on accessibility settings):"; private const string _windowsNotificationsTimeout = "Notification Toast Timeout (seconds, may be ignored by OS based on accessibility settings):";