示例#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);
 }
示例#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);
 }