Exemplo n.º 1
0
 private void AddSubEvent(Term t, TimeBox tb)
 {
     var lowestTerm = tb.GetOrderedBottoms(t).LastOrDefault();
     if (lowestTerm != null)
     {
         //AssignmentTypes.Cast<ISelectable>().Any(o => o.IsSelected == true & lowestTerm.Style.Equals(o))
         if (_customValidation(lowestTerm))
         {
             tb.Create(t, (terms, success) => _dispatchedCallback(t, "", success), false);
             return;
         }
     }
     _dispatchedCallback(t, "BottomTermNotFound", false);
 }
Exemplo n.º 2
0
        private void AddSubEvent(Term t, TimeBox tb)
        {
            var lowestTerm = tb.GetOrderedBottoms(t).LastOrDefault();

            if (lowestTerm != null)
            {
                //AssignmentTypes.Cast<ISelectable>().Any(o => o.IsSelected == true & lowestTerm.Style.Equals(o))
                if (_customValidation(lowestTerm))
                {
                    tb.Create(t, (terms, success) => _dispatchedCallback(t, "", success), false);
                    return;
                }
            }
            _dispatchedCallback(t, "BottomTermNotFound", false);
        }