Ejemplo n.º 1
0
        //#endregion

        public void Initial()
        {
            MyCalendar m_c = new MyCalendar();
            DateEntity tmp = new DateEntity();

            tmp._date = this._date;
            m_c.SetDateEntity(ref tmp);
            this._BeginMonth     = tmp._BeginMonth;
            this._BeginZodiac    = tmp._BeginZodiac;
            this.nonglimonth     = tmp.nonglimonth;
            this.nongliday       = tmp.nongliday;
            this.nonglihour      = tmp.nonglihour;
            this.nongliyearflag  = tmp.nongliyearflag;
            this.NongliMonthDays = tmp.NongliMonthDays;
            if (nongliyearflag)
            {
                BaZi.BaZiBiz m_bz = PPLive.BaZi.BaZiBiz.GetInstance();
                this.nongliTG = m_bz.YearTG(_date.Year - 1);
                this.nongliDZ = m_bz.YearDZ(_date.Year - 1);
            }
            else
            {
                BaZi.BaZiBiz m_bz = PPLive.BaZi.BaZiBiz.GetInstance();
                this.nongliTG = m_bz.YearTG(_date.Year);
                this.nongliDZ = m_bz.YearDZ(_date.Year);
            }
        }
Ejemplo n.º 2
0
 //#endregion
 public void Initial()
 {
     MyCalendar m_c = new MyCalendar();
     DateEntity tmp = new DateEntity();
     tmp._date = this._date;
     m_c.SetDateEntity(ref tmp);
     this._BeginMonth = tmp._BeginMonth;
     this._BeginZodiac = tmp._BeginZodiac;
     this.nonglimonth = tmp.nonglimonth;
     this.nongliday = tmp.nongliday;
     this.nonglihour = tmp.nonglihour;
     this.nongliyearflag = tmp.nongliyearflag;
     this.NongliMonthDays = tmp.NongliMonthDays;
     if (nongliyearflag)
     {
         BaZi.BaZiBiz m_bz = PPLive.BaZi.BaZiBiz.GetInstance();
         this.nongliTG = m_bz.YearTG(_date.Year - 1);
         this.nongliDZ = m_bz.YearDZ(_date.Year - 1);
     }
     else
     {
         BaZi.BaZiBiz m_bz = PPLive.BaZi.BaZiBiz.GetInstance();
         this.nongliTG = m_bz.YearTG(_date.Year);
         this.nongliDZ = m_bz.YearDZ(_date.Year);
     }
 }