public void Explode(IExplodable Target) { if(Target is Order == false) { throw new ArgumentException(); } this.Order = Target as Order; ExplodeContent(); }
public static Order GetFakeOrder(String Name = "9915240") { var Result = new Order(); Result.Name = "9915240"; (Result.Content as List<Element>).Add(new Element(ElementType.Block,"УЭ","8.815.240")); (Result.Content as List<Element>).Add(new Element(ElementType.Block, "УЭ", "7.715.240")); return Result; }
public CalendarGraph(Order Order) { Clear(); this.Order = Order; // To IoC var Exploder = new OrderExploder(); this.Order.Explode(Exploder); ActiveElement.Content = this.Order.Content; /// OrderExplode(); /// CacheExpandResults(); }
public ElementExploder(Order Order) { this.Order = Order; }