public ElseBlock() : base("else") { ElseIfSection = new IfPart(this); EmptyIf.MyTextBox.PreviewKeyPress += delegate(object sender, KeyPressEventArgs e) { if (char.IsLetter(e.KeyChar)) { EmptyIf.Replace(ElseIfSection); e.Handled = true; } }; EmptyIf.MyControl.Box.Margins.SetLeftAndRight(ShapeStyle.DefaultFontSize); EmptyIf.MyControl.Box.SetMouseSensitivityToMargins(); this.HMembers.Add(EmptyIf); }