Rev 2257 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2257 | Rev 2261 | ||
---|---|---|---|
Line 234... | Line 234... | ||
234 | System.Threading.Monitor.Exit(oLock); |
234 | System.Threading.Monitor.Exit(oLock); |
235 | } |
235 | } |
Line 236... | Line 236... | ||
236 | 236 | ||
- | 237 | ||
- | 238 | } |
|
- | 239 | ||
- | 240 | private void btnRefresh_Click(object sender, EventArgs e) |
|
- | 241 | { |
|
- | 242 | if (!port.IsOpen) |
|
- | 243 | { |
|
- | 244 | comboBoxPortName.Items.Clear(); |
|
- | 245 | comboBoxPortName.Items.AddRange(getPortNameValues()); |
|
- | 246 | } |
|
- | 247 | else |
|
237 | 248 | MessageBox.Show("Port has to be closed!"); |
|
238 | } |
249 | } |