void SendDataAllPlayer(SendParameter Parameter, string Content) { foreach (Player player in playerList) { SendData(player, Parameter, Content); } }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value != null) { SendParameter send = value as SendParameter; return(send.FreqStart + "-" + send.FreqEnd); } return(null); }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value != null) { //SendParameter send = value as SendParameter; SendParameter send = new SendParameter(); send.FreqStart = ((AT_BC.Data.Range <double>)(value)).Little; send.FreqEnd = ((AT_BC.Data.Range <double>)(value)).Great; return((send.FreqStart / 1000000).ToString() + "-" + (send.FreqEnd / 1000000).ToString()); } return(null); }
/// <summary> /// Sends the specified connection. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="connection">The connection.</param> /// <param name="parameters">The parameters.</param> public void Send <T>(DBConnection connection, IEnumerable <T> parameters) { if (parameters == null) { return; } _sendStrategy = Prepare(typeof(T)); _connection = connection; foreach (object parameter in parameters) { _sendStrategy(parameter); } }
/// <summary> /// Sends the specified _connection. /// </summary> /// <param name="connection">The _connection.</param> /// <param name="parameters">The parameters.</param> public void Send(DBConnection connection, IEnumerable parameters) { if (parameters == null) { return; } _sendStrategy = null; _connection = connection; foreach (object parameter in parameters) { if (_sendStrategy == null) { _sendStrategy = Prepare(parameter.GetType()); } _sendStrategy(parameter); } }
public string Send(SendParameter param) { //Cast BParam and call send method return("B"); }
void SendData(Socket clientSocket, SendParameter Parameter, string Content) { string data = Parameter.ToString("G") + "=" + Content; base.Send(clientSocket, data); }
void SendData(Player player, SendParameter Parameter, string Content) { SendData(player.socket, Parameter, Content); }
public SendResult SendEmail(SendParameter parameter, string attachmentName, string attachmentPath) { string json = base.CallApi(Config.SendConfig.MailSend, parameter, attachmentName, attachmentPath); return(JsonNet.DeserializeToString <SendResult>(json)); }
public SendResult SendEmail(SendParameter parameter) { return(Execute <SendResult, SendParameter>(Config.SendConfig.MailSend, parameter, true)); }