private void CreateContents() { ClearContents(); if (_overContainer == null) { _overContainer = new AgeTemplateContainer(this); if (_isTemplate != null) { _isTemplate.InstantiateIn(_overContainer); } this.Controls.Add(_overContainer); } else if (_isTemplate != null) { this._isTemplate.InstantiateIn(this._overContainer); } if (_notContainer == null) { _notContainer = new AgeTemplateContainer(this); if (_notTemplate != null) { this._notTemplate.InstantiateIn(this._notContainer); } Controls.Add(_notContainer); } else if (_notTemplate != null) { this._notTemplate.InstantiateIn(this._notContainer); } }
internal void ClearContents() { if (_overContainer != null) _overContainer.Controls.Clear(); _overContainer = null; if (_notContainer != null) _notContainer.Controls.Clear(); _notContainer = null; Controls.Clear(); }
internal void ClearContents() { if (_overContainer != null) { _overContainer.Controls.Clear(); } _overContainer = null; if (_notContainer != null) { _notContainer.Controls.Clear(); } _notContainer = null; Controls.Clear(); }
private void CreateContents() { ClearContents(); if (_overContainer == null) { _overContainer = new AgeTemplateContainer(this); if (_isTemplate != null) { _isTemplate.InstantiateIn(_overContainer); } this.Controls.Add(_overContainer); } else if (_isTemplate != null) { this._isTemplate.InstantiateIn(this._overContainer); } if (_notContainer == null) { _notContainer = new AgeTemplateContainer(this); if (_notTemplate != null) this._notTemplate.InstantiateIn(this._notContainer); Controls.Add(_notContainer); } else if (_notTemplate != null) { this._notTemplate.InstantiateIn(this._notContainer); } }