public override void OnApplyTemplate() { base.OnApplyTemplate(); this.Initializ(); this._blockManager = new BlockManager(this, this.FormatString); }
public Block(BlockManager blockManager, string pattern, int index) { this._blockManager = blockManager; this._blockManager.NeglectProposed += new EventHandler(_blockManager_NeglectProposed); this.Pattern = pattern; this.Index = index; this.Length = this.Pattern.Length; this._maxLength = this.GetMaxLength(this.Pattern); }