You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.Windows.MessageBox.Show("Nie można się połączyć z danym portem");
185
-
return;
186
-
}
187
-
catch(FileNotFoundException)
188
-
{
189
-
System.Windows.MessageBox.Show("Nie można się połączyć z danym portem, jesteś pewien, że nie został w trakcie rozłączony?");
190
-
return;
191
-
}
171
+
rsConnector=newRSCommunication(
172
+
portName:ComPorts.Text,
173
+
baudRate:baudRate,
174
+
parityNumber:(Parity)parity,
175
+
dataBits:dataBits,
176
+
stopBits:(StopBits)stopBits,
177
+
handshakeType:(Handshake)handshake
178
+
);
179
+
}
180
+
catch(ArgumentException)
181
+
{
182
+
System.Windows.MessageBox.Show("Nie można się połączyć z danym portem");
183
+
return;
192
184
}
185
+
catch(FileNotFoundException)
186
+
{
187
+
System.Windows.MessageBox.Show("Nie można się połączyć z danym portem, jesteś pewien, że nie został w trakcie rozłączony?");
188
+
return;
189
+
}
190
+
193
191
// zmienne pomocnicze
194
192
intwaitMs;
195
193
boolcontinueMeas=true;
@@ -251,7 +249,6 @@ private void ExecuteTests()
251
249
MessageBoxResultresult=System.Windows.MessageBox.Show("Jeśli chcesz rozpocząć test seryjny kondensatora kilknij OK, jeśli nie wciśnij Cancel","Czy kontynuować?",MessageBoxButton.OKCancel);
252
250
if(result!=MessageBoxResult.OK)
253
251
{
254
-
returnToIdle(rsConnector,false);
255
252
continueMeas=false;
256
253
break;
257
254
}
@@ -319,7 +316,8 @@ private void ExecuteTests()
319
316
return;
320
317
}
321
318
}
322
-
319
+
320
+
returnToIdle(rsConnector,false);
323
321
System.Windows.MessageBox.Show("Zakończono wszystkie testy");
0 commit comments