Mercurial > servermonitor
comparison ServerMonitor/Forms/SettingsForm.cs @ 39:7645122aa7a9
Get it working under Mono
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Tue, 09 Jun 2020 20:59:00 -0400 |
parents | f6235dc0a8ec |
children | c4fc74593a78 |
comparison
equal
deleted
inserted
replaced
38:8ab98a803d39 | 39:7645122aa7a9 |
---|---|
130 } | 130 } |
131 | 131 |
132 /// <summary>Shows only the filename of the custom sound.</summary> | 132 /// <summary>Shows only the filename of the custom sound.</summary> |
133 private void SoundComboBox_Format(object sender, ListControlConvertEventArgs e) | 133 private void SoundComboBox_Format(object sender, ListControlConvertEventArgs e) |
134 { | 134 { |
135 ComboBox comboBox = (ComboBox)sender; | |
136 if (!soundOptions.Contains(e.Value)) | 135 if (!soundOptions.Contains(e.Value)) |
137 e.Value = Path.GetFileName(e.Value.ToString()); | 136 e.Value = Path.GetFileName(e.Value.ToString()); |
138 } | 137 } |
139 | 138 |
140 /// <summary>Returns the selected sound for a combo box as stored in program settings.</summary> | 139 /// <summary>Returns the selected sound for a combo box as stored in program settings.</summary> |