public static async void SetLineSequence(int nSequence) { Sequences.LineSequence = nSequence; CLineValueSequencer.SetCurrentSequence(nSequence); m_hvsCurrent.Update(); await m_dp.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, UpdateDiagrams); }
public static async void SetLineRatio(int nRatio) { Sequences.LineRatio = nRatio; CLineValueSequencer.SetCurrentRatio(nRatio); m_hvsCurrent.Update(); await m_dp.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, UpdateDiagrams); }
static void Main(string[] args) { YijingData yd = new YijingData(); yd.InitialseDB(); using (YijingEntities ye = new YijingEntities()) { YijingDb.Type t = ye.Types.Find(3); LabelSery ls2 = ye.LabelSeries.Where(ls1 => ls1.Name == "Vivash" && ls1.TypeId == (int)Sequences.ValueType.Hexagram).First(); // .OrderBy(ls1 => ls1.Name) IEnumerable <LabelSery> iels = from ls3 in ye.LabelSeries where ls3.TypeId == (int)Sequences.ValueType.Line orderby ls3.Name select ls3; List <LabelSery> lls = iels.ToList(); LabelSery ls4 = ye.LabelSeries.Include(ls => ls.Type).Include(ls => ls.Labels).Single(ls5 => ls5.Name == "Vivash"); Label l1 = ls2.Labels.Single(l => l.LabelData == "Return"); t = l1.Type; } CLineValueSequencer.SetCurrentRatio(0); // 0 - 5 "Equal", "Coin", "Yarrow", "Marbles", "Yin", "Yang" CHexagramArray ha = new CHexagramArray(); ha.MultiCast(10000); foreach (CHexagram h in ha.HexagramArray()) { if (h.Count > 0) { Console.WriteLine($"{h.Count,4:D} {h.DescribeCast}"); } } int x = 0; }
public static async void SetLineLabel(int nLabel) { Sequences.LineLabel = nLabel; CLineValueSequencer.SetCurrentLabel(nLabel); await m_dp.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, UpdateDiagrams); }