private void FormMain_Load(object sender, EventArgs e)
{
if(_client == null) {
MessageBox.Show("Could not connect to server");
Application.Exit();
return;
}
_client.RegisterToAlarmService(ALARM_SERVICE_FUNCTION);
//_client.RegisterToTimeService(TIME_SERVICE_FUNCTION);
RefreshAlarms();
}