⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sms.cs

📁 老外Logix Mobile mCoreLib短信控件源码 通过串口或者手机数据线进行连接,可对手机进行 读写操作.
💻 CS
📖 第 1 页 / 共 5 页
字号:

        public bool DebugMode
        {
            get
            {
                this.gm.av();
                return this.gm.r;
            }
            set
            {
                this.gm.av();
                this.gm.r = value;
                this.r.b("Debug mode: " + value.ToString());
            }
        }

        public int DelayAfterPIN
        {
            get
            {
                this.gm.av();
                return this.gm.an;
            }
            set
            {
                this.gm.av();
                if ((value >= 1) & (value <= 0xea60))
                {
                    this.gm.an = value;
                    this.r.b("Delay after PIN: " + value.ToString() + "ms");
                }
                else
                {
                    this.gm.a(0x7ecL, "Invalid value for delay after PIN", "GENERAL");
                }
                this.a();
            }
        }

        public bool DeliveryReport
        {
            get
            {
                this.gm.av();
                return this.gm.bi;
            }
            set
            {
                this.aq = value;
                Thread thread = new Thread(new ThreadStart(this.f));
                thread.Name = "DeliveryReportSetThread";
                thread.Priority = ThreadPriority.Normal;
                thread.Start();
                while (thread.IsAlive)
                {
                    Thread.Sleep(1);
                    Application.DoEvents();
                }
                this.a();
            }
        }

        public bool DisableCheckPIN
        {
            get
            {
                this.gm.av();
                return this.gm.a8;
            }
            set
            {
                this.gm.av();
                this.gm.a8 = value;
                if (value)
                {
                    this.r.b("Disable PIN status check");
                }
                else
                {
                    this.r.b("Enable PIN status check");
                }
            }
        }

        public mCore.Encoding Encoding
        {
            get
            {
                mCore.Encoding encoding;
                this.gm.av();
                switch (this.gm.bl)
                {
                    case 7:
                        return mCore.Encoding.GSM_Default_7Bit;

                    case 8:
                        return mCore.Encoding.ANSI_8Bit;

                    case 9:
                    case 10:
                    case 11:
                    case 12:
                    case 13:
                    case 14:
                    case 15:
                        return encoding;

                    case 0x10:
                        return mCore.Encoding.Unicode_16Bit;
                }
                return encoding;
            }
            set
            {
                this.gm.av();
                if (!(((value == mCore.Encoding.GSM_Default_7Bit) | (value == mCore.Encoding.ANSI_8Bit)) | (value == mCore.Encoding.Unicode_16Bit)))
                {
                    this.gm.a(0xfa5L, "Invalid character encoding", "GENERAL");
                }
                else
                {
                    switch (value)
                    {
                        case mCore.Encoding.GSM_Default_7Bit:
                            this.gm.bl = 7;
                            break;

                        case mCore.Encoding.ANSI_8Bit:
                            this.gm.bl = 8;
                            break;

                        case mCore.Encoding.Unicode_16Bit:
                            this.gm.bl = 0x10;
                            break;
                    }
                    this.r.b("Encoding: " + value.ToString());
                }
                this.a();
            }
        }

        public long ErrorCode
        {
            get
            {
                return this.gm.z;
            }
        }

        public string ErrorDescription
        {
            get
            {
                return this.gm.y;
            }
        }

        public mCore.FlowControl FlowControl
        {
            get
            {
                mCore.FlowControl none;
                this.gm.av();
                switch (this.gm.r().Handshake)
                {
                    case Handshake.None:
                        none = mCore.FlowControl.None;
                        break;

                    case Handshake.XOnXOff:
                        none = mCore.FlowControl.Xon_Xoff;
                        break;

                    case Handshake.RequestToSend:
                        none = mCore.FlowControl.RTS_CTS;
                        break;

                    case Handshake.RequestToSendXOnXOff:
                        this.gm.r().Handshake = Handshake.None;
                        none = mCore.FlowControl.None;
                        break;
                }
                this.a();
                return none;
            }
            set
            {
                if (this.gm.r().IsOpen)
                {
                    this.gm.a(0x408L, "Cannot change flow control when port is open", "GENERAL");
                }
                else
                {
                    switch (value)
                    {
                        case mCore.FlowControl.None:
                            this.gm.r().Handshake = Handshake.None;
                            break;

                        case mCore.FlowControl.RTS_CTS:
                            this.gm.r().Handshake = Handshake.RequestToSend;
                            break;

                        case mCore.FlowControl.Xon_Xoff:
                            this.gm.r().Handshake = Handshake.XOnXOff;
                            break;
                    }
                    if (this.gm.r().Handshake != Handshake.RequestToSend)
                    {
                        this.gm.r().RtsEnable = false;
                        this.gm.r().DtrEnable = false;
                    }
                    this.gm.r().DtrEnable = false;
                    this.r.b("Handshake: " + value.ToString());
                }
                this.a();
            }
        }

        internal virtual f gm
        {
            [DebuggerNonUserCode]
            get
            {
                return this.o;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this.o = value;
            }
        }

        public string IMEI
        {
            get
            {
                Thread thread = new Thread(new ThreadStart(this.p));
                thread.Name = "IMEIGetThread";
                thread.Priority = ThreadPriority.Normal;
                thread.Start();
                while (thread.IsAlive)
                {
                    Thread.Sleep(1);
                    Application.DoEvents();
                }
                string af = this.af;
                this.a();
                return af;
            }
        }

        public string IMSI
        {
            get
            {
                Thread thread = new Thread(new ThreadStart(this.o));
                thread.Name = "IMSIGetThread";
                thread.Priority = ThreadPriority.Normal;
                thread.Start();
                while (thread.IsAlive)
                {
                    Thread.Sleep(1);
                    Application.DoEvents();
                }
                string ag = this.ag;
                this.a();
                return ag;
            }
        }

        public bool IncomingCallIndication
        {
            get
            {
                this.gm.av();
                return this.gm.v;
            }
            set
            {
                this.at = value;
                Thread thread = new Thread(new ThreadStart(this.c));
                thread.Name = "IncomingCallIndicationSetThread";
                thread.Priority = ThreadPriority.Normal;
                thread.Start();
                while (thread.IsAlive)
                {
                    Thread.Sleep(1);
                    Application.DoEvents();
                }
                this.a();
            }
        }

        public bool IsConnected
        {
            get
            {
                Thread thread = new Thread(new ThreadStart(this.b));
                thread.Name = "IsConnectedGetThread";
                thread.Priority = ThreadPriority.Normal;
                thread.Start();
                while (thread.IsAlive)
                {
                    Thread.Sleep(1);
                    Application.DoEvents();
                }
                bool y = this.y;
                this.a();
                return y;
            }
        }

        public string LogFolderPath
        {
            get
            {
                this.gm.av();
                return this.r.a();
            }
            set
            {
                this.gm.av();
                if (value == null)
                {
                    value = "";
                }
                value = value.Trim();
                if (value.Length > 0)
                {
                    if (Directory.Exists(value))
                    {
                        this.r.a(value);
                        this.r.b("Log folder: " + value);
                    }
                    else
                    {
                        try
                        {
                            Directory.CreateDirectory(value);
                            this.r.a(value);
                            this.r.b("Log folder: " + value);
                        }
                        catch (Exception exception1)
                        {
                            ProjectData.SetProjectError(exception1);
                            Exception exception = exception1;
                            this.gm.a(0x232aL, "Error creating log file path", "GENERAL");
                            ProjectData.ClearProjectError();
                        }
                    }
                }
                else
                {
                    this.gm.a(0x232bL, "Invalid log file path", "GENERAL");
                }
                this.a();
            }
        }

        public long LogSize
        {
            get
            {
                this.gm.av();
                long num = this.r.c();
                this.a();
                return num;
            }
        }

        public mCore.LogType LogType
        {
            get
            {
                this.gm.av();
                return (mCore.LogType) this.r.b();
            }
            set
            {
                this.gm.av();
                if (this.r.a().Trim().Length > 0)
                {
                    if ((value >= mCore.LogType.NoLog) & (value <= mCore.LogType.ErrorEventLog))
                    {
                        this.r.b((int) value);
                        this.r.b(this.gm.al());
                        this.r.b("Log type: " + value.ToString());
                    }
                    else
                    {
                        this.gm.a(0x2329L, "Invalid log type option", "GENERAL");
                    }
                }
                else
                {
                    this.gm.a(0x232bL, "Invalid log file path", "GENERAL");
                }
                this.a();
            }
        }

        public mCore.LongMessage LongMessage
        {
            get
          

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -