Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }