public override void Visit(ElseBlock block) { WriteIndent(); Write(block.Keyword.Text); if (!string.IsNullOrEmpty(block.Condition)) { Write(" if ("); Write(block.Condition); Write(")"); } NewLine(); StartBlock(); VisitContainer(block.VMembers); EndBlock(); }
public IfPart(ElseBlock parent) : base() { ParentElse = parent; this.MyControl.Focusable = true; this.MyControl.Box.Margins.SetLeftAndRight(ShapeStyle.DefaultFontSize); this.MyControl.Box.SetMouseSensitivityToMargins(); this.MyControl.Style = parent.MyControl.Style; this.MyControl.SelectedStyle = parent.MyControl.SelectedStyle; this.MyControl.ShouldDrawBackground = false; Condition.MyControl.Box.Margins.SetLeftAndRight(ShapeStyle.DefaultFontSize); Condition.MyControl.Box.SetMouseSensitivityToMargins(); Condition.MyControl.KeyDown += delegate(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Back && string.IsNullOrEmpty(Condition.Text)) { this.Delete(); e.Handled = true; } }; this.Add(Keyword, Condition); }
public virtual void Visit(ElseBlock block) { }
public override void Visit(ElseBlock block) { }