
    public abstract class DuanXinModal
    {
        /// <summary>
        /// 是否已经连接
        /// </summary>
        public static bool IsReady = false;
        /// <summary>
        /// 连接方式
        /// </summary>
        public string Remark { get; set; }

        public static string UserNameOrCom1 { get; set; }

        public static string PwdOrBTL { get;set; }
        /// <summary>
        /// 连接
        /// </summary>
        /// <param name="SerialPort"></param>
        /// <param name="BaudRate"></param>
        /// <returns></returns>
        public abstract bool DuanXinLianJie(object SerialPort, object BaudRate);


        /// <summary>
        /// 发送
        /// </summary>
        /// <param name="SendPhone"></param>
        /// <param name="SendMes"></param>
        /// <param name="fail"></param>
        /// <param name="sucess"></param>
        public abstract void DuanXinFaSong(string SendPhone, string SendMes, out string fail, out string sucess);


子类：MDPsend   - 网关发送

      GsmSend   - 短信猫发送


