private IEnumerable <ShiYun> 起大运(HHTime birthday) { DateTime? dayunTime = birthday.Type == HHTime.TimeType.时间 ? LnBase.起运时间(birthday.DateTime, this.方向) : (DateTime?)null; List <ShiYun> dayuns = new List <ShiYun>(); ShiYun dyVor = new ShiYun(this.四柱.月.Add(0), ShiYun.YunType.大运, this.time.Bazi); dyVor.Start = birthday.Type == HHTime.TimeType.时间 ? birthday.DateTime : (DateTime?)null; dyVor.End = dayunTime; dyVor.起小运 += this.起小运; dyVor.起流年 += this.起流年; dayuns.Add(dyVor); int f = this.方向 == 方向.顺行 ? 1 : -1; for (int i = 1; i <= 10; i++) { ShiYun dy = new ShiYun(this.四柱.月.Add(f * i), ShiYun.YunType.大运, this.time.Bazi); if (dayunTime != null) { dy.Start = ((DateTime)dayunTime).AddYears(10 * (i - 1)); dy.End = ((DateTime)dayunTime).AddYears(10 * i); dy.起小运 += this.起小运; dy.起流年 += this.起流年; } dayuns.Add(dy); } return(dayuns); }
public Gua(string 本卦, string 变卦, HHTime time) { this.本卦 = new Gua64(本卦); this.变卦 = new Gua64(变卦); this.伏卦 = new Gua64(this.本卦.卦宫.Index, this.本卦.卦宫.Index); this.time = time; this.装卦(); }
public Ming(HHTime time, 性别 gender) { this.性别 = gender; this.time = time; this.InitData(); }