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

📄 vcalendar.cs

📁 老外Logix Mobile mCoreLib短信控件源码 通过串口或者手机数据线进行连接,可对手机进行 读写操作.
💻 CS
📖 第 1 页 / 共 5 页
字号:
                }
                this.f = value.Trim();
                if ((this.f.Length == 0) | (!this.i.j(this.f) & !this.i.f(this.f)))
                {
                    this.f = "";
                    this.i.a(0x1f5bL, "Invalid destination mobile number", "VCALENDAR");
                }
                this.a();
            }
        }

        public DateTime EndDateTime
        {
            get
            {
                this.i.av();
                return this.b;
            }
            set
            {
                this.i.av();
                if ((DateTime.Compare(value, DateTime.MinValue) != 0) & Information.IsDate(value))
                {
                    if (DateTime.Compare(this.a, DateTime.MinValue) != 0)
                    {
                        if (DateAndTime.DateDiff(DateInterval.Minute, this.a, value, FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1) > 0L)
                        {
                            this.b = value;
                            this.h = false;
                        }
                        else
                        {
                            this.b = new DateTime();
                            this.h = true;
                            this.i.a(0x1f5eL, "Event end date time cannot be less than start date time", "VCALENDAR");
                        }
                    }
                    else
                    {
                        this.b = value;
                        this.h = false;
                    }
                }
                else
                {
                    this.b = new DateTime();
                    this.h = true;
                    this.i.a(0x1f5fL, "Invalid event end date time", "VCALENDAR");
                }
                this.b();
                this.a();
            }
        }

        public string EventDuration
        {
            get
            {
                this.i.av();
                return this.c;
            }
            set
            {
                string str = "";
                long num = 0L;
                bool flag = false;
                this.i.av();
                if (value == null)
                {
                    value = "0";
                }
                if (value.Length >= 2)
                {
                    str = value.Substring(value.Length - 1, 1).ToUpper();
                    if ((Versioned.IsNumeric(value.Substring(0, value.Length - 1)) & !value.Contains(",")) & !value.Contains("."))
                    {
                        num = Conversions.ToLong(value.Substring(0, value.Length - 1));
                        flag = true;
                    }
                    else
                    {
                        this.c = "0";
                    }
                }
                else
                {
                    this.c = "0";
                }
                if ((num == 0L) & (((str == "H") | (str == "D")) | (str == "M")))
                {
                    this.c = "0";
                }
                else if ((((str == "H") | (str == "D")) | (str == "M")) & (num > 0L))
                {
                    this.c = value.ToUpper();
                }
                else
                {
                    this.c = "0";
                }
                if (!flag)
                {
                    this.c = "0";
                    this.h = false;
                    this.b();
                    this.i.a(0x1f60L, "Invalid event duration", "VCALENDAR");
                }
                else
                {
                    this.h = true;
                    this.b();
                }
                this.a();
            }
        }

        public string Location
        {
            get
            {
                this.i.av();
                return this.g;
            }
            set
            {
                this.i.av();
                if (value == null)
                {
                    value = "";
                }
                this.g = value.Trim();
                if ((value.Trim().Length > 0) & !this.i.h(value))
                {
                    this.g = "";
                    this.i.a(0x1f63L, "Invalid characters in event location name", "VCALENDAR");
                }
                this.a();
            }
        }

        public string mCore.IvCalendar.Description
        {
            get
            {
                this.i.av();
                return this.d;
            }
            set
            {
                if (value == null)
                {
                    value = "";
                }
                this.d = value.Trim();
                if ((value.Trim().Length > 0) & !this.i.h(value))
                {
                    this.d = "";
                    this.i.a(0x1f61L, "Invalid characters in event description", "VCALENDAR");
                }
                this.a();
            }
        }

        public string mCore.IvCalendar.Destination
        {
            get
            {
                this.i.av();
                return this.f;
            }
            set
            {
                this.i.av();
                if (value == null)
                {
                    value = "";
                }
                this.f = value.Trim();
                if ((this.f.Length == 0) | (!this.i.j(this.f) & !this.i.f(this.f)))
                {
                    this.f = "";
                    this.i.a(0x1f5bL, "Invalid destination mobile number", "VCALENDAR");
                }
                this.a();
            }
        }

        public DateTime mCore.IvCalendar.EndDateTime
        {
            get
            {
                this.i.av();
                return this.b;
            }
            set
            {
                this.i.av();
                if ((DateTime.Compare(value, DateTime.MinValue) != 0) & Information.IsDate(value))
                {
                    if (DateTime.Compare(this.a, DateTime.MinValue) != 0)
                    {
                        if (DateAndTime.DateDiff(DateInterval.Minute, this.a, value, FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1) > 0L)
                        {
                            this.b = value;
                            this.h = false;
                        }
                        else
                        {
                            this.b = new DateTime();
                            this.h = true;
                            this.i.a(0x1f5eL, "Event end date time cannot be less than start date time", "VCALENDAR");
                        }
                    }
                    else
                    {
                        this.b = value;
                        this.h = false;
                    }
                }
                else
                {
                    this.b = new DateTime();
                    this.h = true;
                    this.i.a(0x1f5fL, "Invalid event end date time", "VCALENDAR");
                }
                this.b();
                this.a();
            }
        }

        public string mCore.IvCalendar.EventDuration
        {
            get
            {
                this.i.av();
                return this.c;
            }
            set
            {
                string str = "";
                long num = 0L;
                bool flag = false;
                this.i.av();
                if (value == null)
                {
                    value = "0";
                }
                if (value.Length >= 2)
                {
                    str = value.Substring(value.Length - 1, 1).ToUpper();
                    if ((Versioned.IsNumeric(value.Substring(0, value.Length - 1)) & !value.Contains(",")) & !value.Contains("."))
                    {
                        num = Conversions.ToLong(value.Substring(0, value.Length - 1));
                        flag = true;
                    }
                    else
                    {
                        this.c = "0";
                    }
                }
                else
                {
                    this.c = "0";
                }
                if ((num == 0L) & (((str == "H") | (str == "D")) | (str == "M")))
                {
                    this.c = "0";
                }
                else if ((((str == "H") | (str == "D")) | (str == "M")) & (num > 0L))
                {
                    this.c = value.ToUpper();
                }
                else
                {
                    this.c = "0";
                }
                if (!flag)
                {
                    this.c = "0";
                    this.h = false;
                    this.b();
                    this.i.a(0x1f60L, "Invalid event duration", "VCALENDAR");
                }
                else
                {
                    this.h = true;
                    this.b();
                }
                this.a();
            }
        }

        public string mCore.IvCalendar.Location
        {
            get
            {
                this.i.av();
                return this.g;
            }
            set
            {
                this.i.av();
                if (value == null)
                {
                    value = "";
                }
                this.g = value.Trim();
                if ((value.Trim().Length > 0) & !this.i.h(value))
                {

⌨️ 快捷键说明

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