Пример #1
0
        protected virtual void AddModifierSeparator()
        {
            ModifierSeparatorBlock sep = new ModifierSeparatorBlock();

            sep.Hidden = true;
            this.Add(sep);
        }
Пример #2
0
        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);
                }
            }
        }
Пример #3
0
 protected virtual void AddModifierSeparator()
 {
     ModifierSeparatorBlock sep = new ModifierSeparatorBlock();
     sep.Hidden = true;
     this.Add(sep);
 }