protected virtual void AddModifierSeparator() { ModifierSeparatorBlock sep = new ModifierSeparatorBlock(); sep.Hidden = true; this.Add(sep); }
protected override void OnKeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (!char.IsLetterOrDigit(e.KeyChar)) { return; } using (Redrawer r = new Redrawer(this.Root)) { ModifierSeparatorBlock prev = this.Prev as ModifierSeparatorBlock; this.Delete(); if (prev != null) { prev.MyControl.OnKeyPress(e); } } }