private FragmentInfo[] GetFragments(FragmentInfo F, FragmentHandler Origin) { if (F.Fragment.SameOrigin) { return(Origin.GetOrdered(F.Fragment)); } else { return(Origin.GetOrderedNoOrigin(F.Fragment, Fragments)); } }
public FragmentInfo Add(Fragment F, string MessageId) { FragmentInfo FI = null; if (F != null && !Fragments.Any(m => m.Fragment.Equals(F))) { Fragments.Add(FI = new FragmentInfo(F, MessageId)); FI = (FragmentInfo)FI.Clone(); } return(FI); }