public void Register(ILayouted layouted) { try { List<ILayout> tmp = null; if (_virtualContainers.ContainsKey(layouted)) { tmp = _virtualContainers[layouted]; } if (tmp == null) { tmp = new List<ILayout>(); _virtualContainers[layouted] = tmp; } if (!tmp.Contains(layouted.Layout)) { tmp.Add(layouted.Layout); } } catch (Exception ex) { throw new ContextCorruptedException("Layout couldn't be registered. (" + ex.Message + ")"); } }
public void Register(ILayouted layouted) { try { List <ILayout> tmp = null; if (_virtualContainers.ContainsKey(layouted)) { tmp = _virtualContainers[layouted]; } if (tmp == null) { tmp = new List <ILayout>(); _virtualContainers[layouted] = tmp; } if (!tmp.Contains(layouted.Layout)) { tmp.Add(layouted.Layout); } } catch (Exception ex) { throw new ContextCorruptedException("Layout couldn't be registered. (" + ex.Message + ")"); } }