public void RdFrAsignedToOtherEngine(object sender, RdFrAsignedToOtherMsg msg) { _Logger.Trace("Procesando {0}: {1}", EventTopicNames.RdFrAsignedToOtherEngine, msg); RdDst rd = _StateManager.Radio[msg.RdId]; NotifMsg notif; if (!rd.Tx) { string text = string.Format(Resources.RdFrAsignedToOtherConfirmation, rd.Frecuency); notif = new NotifMsg("RdFrAsignedToOtherConfirmation", Resources.MessageInfoCaption, text, 0, MessageType.Warning, MessageButtons.OkCancel, msg); } else { string text = string.Format(Resources.RdFrAsignedToOtherNotification, msg.Owner, rd.Frecuency); notif = new NotifMsg("RdFrAsignedToOther", Resources.MessageInfoCaption, text, Settings.Default.MessageToutSg * 1000, MessageType.Information, MessageButtons.Ok, null); } _StateManager.ShowUIMessage(notif); }
public void MessageResponse(NotifMsg msg, NotifMsgResponse response) { _StateManager.HideUIMessage(msg.Id); if (msg.Id.StartsWith("ListenBy")) { ListenPickUpMsg info = (ListenPickUpMsg)msg.Info; _EngineCmdManager.SetRemoteListen(response == NotifMsgResponse.Ok || response == NotifMsgResponse.Timeout, info.Id); if (response == NotifMsgResponse.Ok || response == NotifMsgResponse.Timeout) { _StateManager.Tlf.ListenBy.Reset(info); } } else if (msg.Id == "RdFrAsignedToOtherConfirmation") { if (response == NotifMsgResponse.Ok) { RdFrAsignedToOtherMsg info = (RdFrAsignedToOtherMsg)msg.Info; _EngineCmdManager.ConfirmRdTx(info.RdId); } } else if (msg.Id == Resources.BriefingFunction) { if (response == NotifMsgResponse.Ok) { _EngineCmdManager.BriefingFunction(); } } else if (msg.Id == Resources.DeleteSessionGLP) { if (response == NotifMsgResponse.Ok) { General.SafeLaunchEvent(DeleteSessionGlp, this); } } }