Example #1
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
        /// <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);
            }
        }
Example #5
0
        /// <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);
            }
        }
Example #6
0
 public string Send(SendParameter param)
 {
     //Cast BParam and call send method
     return("B");
 }
Example #7
0
        void SendData(Socket clientSocket, SendParameter Parameter, string Content)
        {
            string data = Parameter.ToString("G") + "=" + Content;

            base.Send(clientSocket, data);
        }
Example #8
0
 void SendData(Player player, SendParameter Parameter, string Content)
 {
     SendData(player.socket, Parameter, Content);
 }
Example #9
0
        public SendResult SendEmail(SendParameter parameter, string attachmentName, string attachmentPath)
        {
            string json = base.CallApi(Config.SendConfig.MailSend, parameter, attachmentName, attachmentPath);

            return(JsonNet.DeserializeToString <SendResult>(json));
        }
Example #10
0
 public SendResult SendEmail(SendParameter parameter)
 {
     return(Execute <SendResult, SendParameter>(Config.SendConfig.MailSend, parameter, true));
 }