protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Gen(startPoint, totalWidth, midWidth, heigth); XiaGua = new Xun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "蛊"; PinYin = "Gu"; XuGua = 18; GuaCi = "元亨。利涉大川,先甲三日,后甲三日。"; TuanCi = "《彖》曰:蛊,刚上而柔下,巽而止,蛊。蛊,元亨而天下治也。“利涉大川”,往有事也。“先甲三日,后甲三日”,终则有始,天行也。"; GuaXiangCi = "《象》曰:山下有风,蛊。君子以振民育德。"; YaoCi = new string[] { "初六,干父之蛊,有子,考无咎。厉,终吉。", "九二,干母之蛊,不可贞。", "九三,干父之蛊,小有悔,无大咎。", "六四,裕父之蛊,往见吝。", "六五,干父之蛊,用誉。", "上九:不事王侯,高尚其事" }; XiangCi = new string[] { "《象》曰:“干父之蛊”,意承考也。", "《象》曰:“干母之蛊”,得中道也。", "《象》曰:“干父之蛊”,终无咎也。", "《象》曰:“裕父之蛊”,往未得也。", "《象》曰:“干父用誉”,承以德也。", "《象》曰:“不事王侯”,志可则也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Kan(startPoint, totalWidth, midWidth, heigth); XiaGua = new Xun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "井"; PinYin = "Jing"; XuGua = 48; GuaCi = "改邑不改井,无丧无得。往来井井。汔至,亦未繘井,羸其瓶,凶。"; TuanCi = "《彖》曰:巽乎水而上水,井。井养而不穷也。“改邑不改井,”乃以刚中也。“汔至,亦未繘井”,未有功也。“羸其瓶”,是以凶也。"; GuaXiangCi = "《象》曰:木上有水,井。君子以劳民劝相。"; YaoCi = new string[] { "初六,井泥不食。旧井无禽。", "九二,井谷射鲋,瓮敝漏。", "九三,井渫不食,为我心恻。可用汲,王明并受其福。", "六四,井甃,无咎。", "九五,井洌,寒泉食。", "上六,井收勿幕,有孚元吉。" }; XiangCi = new string[] { "《象》曰:“井泥不食”,下也。“占井无禽”,时舍也。", "《象》曰:“井谷射鲋”,无与也。", "《象》曰:“井渫不食”,行恻也。求“王明”,受福也。", "《象》曰:“井甃无咎”,修井也。", "《象》曰:“寒泉之食”,中正也。", "《象》曰:“元吉”在“上”,大成也。" }; }
public Gou(PointF startPoint, int totalWidth, int midWidth, int heigth) { XiaGua = new Xun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); ShangGua = new Qian(startPoint, totalWidth, heigth); Name = "姤"; IsTwelvePIGua = true; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Kun(startPoint, totalWidth, midWidth, heigth); XiaGua = new Xun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "升"; PinYin = "Sheng"; XuGua = 46; GuaCi = "元亨。用见大人,勿恤。南征吉。"; TuanCi = "《彖》曰:柔以时升,巽而顺,刚中而应,是以大亨,“用见大人勿恤”,有庆也。“南征吉”,志行也。"; GuaXiangCi = "《象》曰:地中生木,升。君子以顺德,积小以高大。"; YaoCi = new string[] { "初六,允升,大吉。", "九二,孚乃利用禴,无咎。", "九三,升虚邑。", "六四,王用亨于岐山,吉,无咎。", "六五,贞吉,升阶。", "上六,冥升,利于不息之贞。" }; XiangCi = new string[] { "《象》曰:“允升大吉”,上合志也。", "《象》曰:九二之孚,有喜也。", "《象》曰:“升虚邑”,无所疑也。", "《象》曰:“王用亨于岐山”,顺事也。", "《象》曰:“贞吉升阶”,大得志也。", "《象》曰:冥升在上,消不富也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Xun(startPoint, totalWidth, midWidth, heigth); XiaGua = new Xun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "巽"; PinYin = "Xun"; XuGua = 57; GuaCi = "小亨。利有攸往。利见大人。"; GuaXiangCi = "《象》曰:随风,巽。君子以申命行事。"; TuanCi = "《彖》曰:重巽以申命。刚巽乎中正而志行。柔皆顺乎刚,是以“小亨,利有攸往,利见大人”。"; YaoCi = new string[] { "初六,进退,利武人之贞。", "九二,巽在床下,用史巫纷若,吉,无咎。", "九三,频巽,吝。", "六四,悔亡,田获三品。", "九五,贞吉,悔亡,无不利,无初有终。先庚三日,后庚三日,吉。", "上九,巽在床下,丧其资斧,贞凶。" }; XiangCi = new string[] { "《象》曰:“进退”,志疑也。“利武人之贞”,志治也。", "《象》曰:“纷若之吉”,得中也。", "《象》曰:“频巽之吝”,志穷也。", "《象》曰:“田获三品”,有功也。", "《象》曰:九五之吉,位正中也。", "《象》曰:“巽在床下”,上穷也。“丧其资斧”,正乎凶也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Xun(startPoint, totalWidth, midWidth, heigth); XiaGua = new Kan(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "涣"; PinYin = "Huan"; XuGua = 59; GuaCi = "亨。王假有庙。利涉大川,利贞。"; GuaXiangCi = "《象》曰:风行水上,涣。先王以享于帝,立庙。"; TuanCi = "《彖》曰:“涣,亨”,刚来而不穷,柔得位乎外而上同。“王假有庙”,王乃在中也。“利涉大川”,乘木有功也。"; YaoCi = new string[] { "初六,用拯马壮,吉。", "九二,涣奔其机,悔亡。", "六三,涣其躬,无悔。", "六四,涣其群,元吉。涣有丘,匪夷所思。", "九五,涣汗其大号,涣王居,无咎。", "上九,涣其血,去逖出,无咎。" }; XiangCi = new string[] { "《象》曰:初六之吉顺也。", "《象》曰:“涣奔其机”,得愿也。", "《象》曰:“涣其躬”,志在外也。", "《象》曰:“涣其群元吉”,光大也。", "《象》曰:“王居无咎”,正位也。", "《象》曰:“涣其血”,远害也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Zhen(startPoint, totalWidth, midWidth, heigth); XiaGua = new Xun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "恒"; XuGua = 32; PinYin = "Heng"; GuaCi = "亨。无咎。利贞。利有攸往。"; TuanCi = " 《彖》曰:恒,久也。刚上而柔下。雷风相与,巽而动,刚柔皆应,恒。“恒亨无咎利贞”,久于其道也。天地之道恒久而不已也。“利有攸往”,终则有始也。日月得天而能久照,四时变化而能久成。圣人久于其道而天下化成。观其所恒,而天地万物之情可见矣。"; GuaXiangCi = "《象》曰:雷风,恒。君子以立不易方。"; YaoCi = new string[] { " 初六,浚恒,贞凶,无攸利。", "九二,悔亡。", "九三,不恒其德,或承之羞,贞吝。", "九四,田无禽。", "六五,恒其德,贞,妇人吉,夫子凶。", "上六,振恒,凶。" }; XiangCi = new string[] { "《《象》曰:“浚恒”之“凶”,始求深也。", "《象》曰:九二“悔亡”,能久中也。", "《象》曰:“不恒其德”,无所容也。", "《象》曰:久非其位,安得禽也。", "《象》曰:妇人贞吉,従一而终也。夫子制义,従妇凶也。", "《象》曰:振恒在上,大无功也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Xun(startPoint, totalWidth, midWidth, heigth); XiaGua = new Kun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "观"; PinYin = "Guan"; XuGua = 20; GuaCi = "盥而不荐。有孚颙若。"; TuanCi = "《彖》曰:大观在上,顺而巽,中正以观天下,观。“盥而不荐,有孚颙若”,下观而化也。观天之神道,而四时不忒,圣人以神道设教,而天下服矣。"; GuaXiangCi = "《象》曰:风行地上,观。先王以省方观民设教。"; YaoCi = new string[] { "初六,童观,小人无咎,君子吝。", "六二,窥观,利女贞。", "六三,观我生,进退。", "六四,观国之光,利用宾于王。", "九五,观我生,君子无咎。", "上九,观其生,君子无咎。" }; XiangCi = new string[] { "《象》曰:“初六童观”,“小人”道也。", "《象》曰:“窥观女贞”,亦可丑也。", "《象》曰:“观我生进退”,未失道也。", "《象》曰:“观国之光”,尚宾也。", "《象》曰:“观我生”,观民也。", "《象》曰:“观其生”,志未平也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Li(startPoint, totalWidth, midWidth, heigth); XiaGua = new Xun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "鼎"; PinYin = "Ding"; XuGua = 50; GuaCi = "元吉,亨。"; TuanCi = "《彖》曰:鼎,象也。以木巽火,亨饪也。圣人亨以享上帝,而大亨以养圣贤。巽而耳目聪明,柔进而上行,得中而应乎刚,是以元亨。"; GuaXiangCi = "《象》曰:木上有火,鼎。君子以正位凝命。"; YaoCi = new string[] { "初六,鼎颠趾,利出否。得妾以其子,无咎。", "九二,鼎有实,我仇有疾,不我能即,吉。", "九三,鼎耳革,其行塞,雉膏不食,方雨,亏悔,终吉。", "九四,鼎折足,覆公餗,其形渥,凶。", "六五,鼎黄耳金铉,利贞。", "上九,鼎玉铉,大吉,无不利。" }; XiangCi = new string[] { "《象》曰:“鼎颠趾”,未悖也。“利出否”,以従贵也。", "《象》曰:“鼎有实”,慎所之也。“我仇有疾”,终无尤也。", "《象》曰:“鼎耳革”,失其义也。", "《象》曰:“覆公餗”,信如何也。", "《象》曰:“鼎黄耳”,中以为实也。", "《象》曰:玉铉在上,刚柔节也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Xun(startPoint, totalWidth, midWidth, heigth); XiaGua = new Li(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); PinYin = "JiaRen"; Name = "家人"; XuGua = 37; GuaCi = "利女贞。"; TuanCi = "《彖》曰:家人,女正位乎内,男正位乎外。男女正,天地之大义也。家人有严君焉,父母之谓也。父父,子子,兄兄,弟弟,夫夫,妇妇,而家道正。正家而天下定矣。"; GuaXiangCi = " 《象》曰:风自火出,家人。君子以言有物而行有恒。"; YaoCi = new string[] { " 初九,闲有家,悔亡。", " 六二,无攸遂,在中馈,贞吉。", "九三,家人嗃々,悔厉吉;妇子嘻嘻,终吝。", "九四,富家,大吉。", "九五,王假有家,勿恤,吉。", "上九,有孚威如,终吉。" }; XiangCi = new string[] { "《象》曰:“闲有家”,志未变也。", "《象》曰:六二之吉,顺以巽也。", "《象》曰:“家人嗃々”,未失也。“妇子嘻嘻”,失家节也。", "《象》曰:“富家大吉”,顺在位也。", "《象》曰:“王假有家”,交相爱也。", "《象》曰:威如之吉,反身之谓也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Xun(startPoint, totalWidth, midWidth, heigth); XiaGua = new Dui(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "中孚"; PinYin = "ZhongFu"; XuGua = 61; GuaCi = "豚鱼,吉。利涉大川,利贞。"; GuaXiangCi = "《象》曰:泽上有风,中孚。君子以议狱缓死。"; TuanCi = "《彖》曰:“中孚”,柔在内而刚得中,说而巽,孚乃化邦也。“豚鱼吉”,信及豚鱼也。“利涉大川”,乘木舟虚也。中孚以利贞,乃应乎天也。"; YaoCi = new string[] { "初九,虞吉,有它不燕。", "九二,鸣鹤在阴,其子和之。我有好爵,吾与尔靡之。", "六三,得敌,或鼓或罢,或泣或歌。", "六四,月几望,马匹亡,无咎。", "九五,有孚挛如,无咎。", "上九,翰音登于天,贞凶。" }; XiangCi = new string[] { "《象》曰:初九“虞吉”,志未变也。", "《象》曰:“其子和之”,中心愿也。", "《象》,曰:“或鼓或罢”,位不当也。", "《象》曰:“马匹亡”,绝类上也。", "《象》曰:“有孚挛如”,位正当也。", "《象》曰:“翰音登于天”,何可长也?" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Xun(startPoint, totalWidth, midWidth, heigth); XiaGua = new Gen(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "渐"; PinYin = "Jian"; GuaCi = "女归吉,利贞。"; XuGua = 53; GuaXiangCi = "《象》曰:山上有木,渐。君子以居贤德善俗。"; TuanCi = "《彖》曰:渐之进也,女归吉也。进得位,往有功也。进以正,可以正邦也。其位刚得中也。止而巽,动不穷也。"; YaoCi = new string[] { "初六,鸿渐于干。小子厉,有言,无咎。", "六二,鸿渐于磐,饮食衎衎,吉。", "九三,鸿渐于陆。夫征不复,妇孕不育,凶。利御寇。", "六四,鸿渐于木,或得其桷,无咎。", "九五,鸿渐于陵,妇三岁不孕,终莫之胜,吉。", "上九,鸿渐于陆,其羽可用为仪,吉。" }; XiangCi = new string[] { "《象》曰:“小子之厉”,义无咎也。", "《象》曰:“饮食衎衎”,不素饱也。", "《象》曰:“夫征不复”,离群丑也。“妇孕不育”,失其道也。“利用御寇”,顺相保也。", "《象》曰:“或得其桷”,顺以巽也。", "《象》曰:“终莫之胜吉”,得所愿也。", "《象》曰:“其羽可用为仪,吉”,不可乱也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Xun(startPoint, totalWidth, midWidth, heigth); XiaGua = new Zhen(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "益"; PinYin = "Yi"; XuGua = 42; GuaCi = "利有攸往。利涉大川。"; TuanCi = "《彖》曰:“益”,损上益下,民说无疆。自上下下,其道大光。“利有攸往”,中正有庆。“利涉大川”,木道乃行。益动而巽,日进无疆。天施地生,其益无方。凡益之道,与时偕行。"; GuaXiangCi = "《象》曰:风雷,益。君子以见善则迁,有过则改。"; YaoCi = new string[] { "初九,利用为大作,元吉,无咎。", "六二,或益之十朋之龟,弗克违。永贞吉。王用享于帝,吉。", "六三,益之用凶事,无咎。有孚。中行告公用圭。", "六四,中行告公,従,利用为依迁国。", " 九五,有孚惠心,勿问,元吉。有孚,惠我德。", "上九,莫益之,或击之,立心勿恒,凶。" }; XiangCi = new string[] { "《象》曰:“元吉无咎”,下不厚事也。", "《象》曰:“或益之”,自外来也。", "《象》曰:“益用凶事”,固有之也。", "《象》曰:“告公従”,以益志也。", "《象》曰:“有孚惠心”,勿问之矣。“惠我德”,大得志也。", "《象》曰:“莫益之”,偏辞也。“或击之”,自外来也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { XiaGua = new Xun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); ShangGua = new Qian(startPoint, totalWidth, heigth); Name = "姤"; PinYin = "Gou"; XuGua = 44; IsTwelvePIGua = true; GuaCi = "女壮,勿用取女。"; TuanCi = "姤,遇也,柔遇刚也。勿用取女”,不可与长也。天地相遇,品物咸章也。刚遇中正,天下大行也。姤之时义大矣哉!"; GuaXiangCi = "《象》曰:天下有风,姤。后以施命诰四方。"; YaoCi = new string[] { "初六,系于金柅,贞吉。有攸往,见凶,羸豕孚蹢躅。", "九二,包有鱼,无咎,不利宾。", "九三,臀无肤,其行次且,厉,无大咎。", "九四,包无鱼,起凶。", "九五,以杞包瓜,含章,有陨自天。", "上九,姤其角,吝,无咎。" }; XiangCi = new string[] { "《象》曰:“系于金柅”,柔道牵也。", "《象》曰:“包有鱼”,义不及宾也。", "《象》曰:“其行次且”,行未牵也。", "《象》曰:“无鱼之凶”,远民也。", "《象》曰:九五含章,中正也。有陨自天,志不舍命也。", "《象》曰:“姤其角”,上穷吝也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { XiaGua = new Qian(CreateXiaGuaPoint(startPoint, heigth), totalWidth, heigth); ShangGua = new Xun(startPoint, totalWidth, midWidth, heigth); Name = "小畜"; PinYin = "XiaoXu"; GuaCi = "亨。密云不雨。自我西郊。"; XuGua = 9; TuanCi = "《彖》曰:“小畜”,柔得位而上下应之,曰小畜。健而巽,刚中而志行,乃亨。“密云不雨”,尚往也。“自我西郊”,施未行也。"; GuaXiangCi = "《象》曰:风行天上,“小畜”。君子以懿文德。"; YaoCi = new string[] { "初九,“复自道,何其咎?吉。", "九二,牵复,吉。", "九三,舆说辐。夫妻反目。", "六四,有孚,血去,惕出无咎。", "九五,有孚挛如,富以其邻。", "上九,既雨既处,尚德载。妇贞厉。月几望,君子征凶。" }; XiangCi = new string[] { "《象》曰:“复自道”,其义“吉”也。", "《象》曰:牵复在中,亦不自失也。", "《象》曰:“夫妻反目”,不能正室也。", "《象》曰:“有孚惕出”,上合志也。", "《象》曰:“有孚挛如”,不独富也。", "《象》曰:“既雨既处”,德积载也。“君子征凶”,有所疑也。" }; }
protected override void InitFuGua(PointF startPoint, int totalWidth, int midWidth, int heigth) { ShangGua = new Dui(startPoint, totalWidth, midWidth, heigth); XiaGua = new Xun(CreateXiaGuaPoint(startPoint, heigth), totalWidth, midWidth, heigth); Name = "大过"; XuGua = 28; PinYin = "DaGuo"; GuaCi = "栋挠,利有攸往,亨。"; GuaXiangCi = "《象》曰:泽灭木,大过。君子以独立不惧,遯世无闷。"; TuanCi = "《彖》曰:“大过”,大者过也。“栋挠”,本末弱也。刚过而中,巽而说,行。利有攸往,乃亨。“大过”之时大矣哉!"; YaoCi = new string[] { " 初六,藉用白茅,无咎。", "九二,枯杨生稊,老夫得其女妻,无不利。", "九三,栋桡,凶。", "九四,栋隆,吉。有它,吝。", " 九五,枯杨生华,老妇得其士夫,无咎无誉。", "上六,过涉灭顶,凶。无咎。" }; XiangCi = new string[] { "《象》曰:“藉用白茅”,柔在下也。", "《象》曰:“老夫女妻,”,过以相与也。", "《象》曰:“栋桡”之“凶”,不可以有辅也。", "《象》曰:“栋隆之吉”,不桡乎下也。", "《象》曰:“枯杨生华”,何可久也。“无妇士夫”,亦可丑也。", "《象》曰:“过涉之凶”,不可咎也。" }; }
/// <summary> /// 获取八卦与南向坐坐系,八卦原始坐标上为南 /// </summary> /// <param name="directionPoint"></param> /// <param name="totalWidth"></param> /// <param name="midWidth"></param> /// <param name="heigth"></param> /// <param name="ISS">是否是南向坐标系,默认为南true,false的话会转为现在坐标系</param> /// <returns></returns> public static Tuple <List <DanGua>, List <DanGua> > GetBaGuaList(Dictionary <BaGuaDirection, PointF> directionPoint, int totalWidth, int midWidth, int heigth, bool ISS = false) { var xtList = new List <DanGua>(); var htList = new List <DanGua>(); foreach (var guaDirection in directionPoint.Keys) { if (ISS) { switch (guaDirection) { case BaGuaDirection.ZX: var xkan = new Kan(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xkan); var hdui = new Dui(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hdui); break; case BaGuaDirection.ZN: var xQian = new Qian(directionPoint[guaDirection], totalWidth, heigth); xtList.Add(xQian); var hLi = new Li(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hLi); break; case BaGuaDirection.ZB: var xkun = new Kun(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xkun); var hKan = new Kan(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hKan); break; case BaGuaDirection.ZD: var xLi = new Li(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xLi); var hZhen = new Zhen(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hZhen); break; case BaGuaDirection.DB: var xZhen = new Zhen(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xZhen); var hGen = new Gen(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hGen); break; case BaGuaDirection.DN: var xDui = new Dui(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xDui); var hXun = new Xun(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hXun); break; case BaGuaDirection.XB: var xGen = new Gen(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xGen); var hQian = new Qian(directionPoint[guaDirection], totalWidth, heigth); htList.Add(hQian); break; case BaGuaDirection.XN: var xXun = new Xun(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xXun); var hKun = new Kun(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hKun); break; default: break; } } else { switch (guaDirection) { case BaGuaDirection.ZX: var xLi = new Li(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xLi); var hZhen = new Zhen(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hZhen); break; case BaGuaDirection.ZN: var xkun = new Kun(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xkun); var hKan = new Kan(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hKan); break; case BaGuaDirection.ZB: var xQian = new Qian(directionPoint[guaDirection], totalWidth, heigth); xtList.Add(xQian); var hLi = new Li(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hLi); break; case BaGuaDirection.ZD: var xkan = new Kan(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xkan); var hdui = new Dui(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hdui); break; case BaGuaDirection.DB: var xXun = new Xun(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xXun); var hKun = new Kun(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hKun); break; case BaGuaDirection.DN: var xGen = new Gen(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xGen); var hQian = new Qian(directionPoint[guaDirection], totalWidth, heigth); htList.Add(hQian); break; case BaGuaDirection.XB: var xDui = new Dui(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xDui); var hXun = new Xun(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hXun); break; case BaGuaDirection.XN: var xZhen = new Zhen(directionPoint[guaDirection], totalWidth, midWidth, heigth); xtList.Add(xZhen); var hGen = new Gen(directionPoint[guaDirection], totalWidth, midWidth, heigth); htList.Add(hGen); break; default: break; } } } var xhTup = new Tuple <List <DanGua>, List <DanGua> >(xtList, htList); return(xhTup); }