Where is my error?
private void openFSUIPC()
{
//---------------------------------------------------------------------------------//
try {
//---------------------------------------------------------------------------------//
//Ckeck parking brake
//---------------------------------------------------------------------------------//
if (PBrake.Value == 1)
{
MessageBox.Show(CLIENT_MSG18_RU,
AUTH_ERR0_RU,
MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
FSUIPCConnection.Open();
this.startfl.Enabled = false;
this.endfl.Enabled = true;
this.timer1.Interval = 200;
this.timer1.Enabled = true;
this.connect_m.Text = (FSUIPC_MSG2_RU);
}
//---------------------------------------------------------------------------------//
else
//---------------------------------------------------------------------------------//
{
FSUIPCConnection.Close();
this.startfl.Enabled = true;
this.endfl.Enabled = false;
this.connect_m.Text = (FSUIPC_MSG1_RU);
}
//---------------------------------------------------------------------------------//
}
//---------------------------------------------------------------------------------//
catch
(Exception ex) {
MessageBox.Show(ex.Message,
FSUIPC_ERR0_RU,
MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
//---------------------------------------------------------------------------------//
}