private void RecordForCondition(string markup, string collectionName, string variableName, Dictionary <string, string> attributes) { var block = new ForCondition { CollectionName = collectionName, Attributes = attributes, ContinueVariableName = variableName }; //block.Attach(NodeList); _blocks.Add(block); NodeList = block.Attach(new List <object>()); }
void ForInitializer_PreviewKeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.KeyChar == ';') { ForCondition.SetCursorToTheBeginning(); e.Handled = true; } if (e.KeyChar == ' ' && ForInitializer.MyTextBox.CaretIsAtBeginning) { e.Handled = true; } }
void mForIncrementStep_KeyDown(Block block, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == System.Windows.Forms.Keys.Tab) { ForInitializer.SetFocus(); e.Handled = true; } if (e.KeyCode == System.Windows.Forms.Keys.Back) { ForCondition.SetCursorToTheEnd(); e.Handled = true; } }
void mForInitializer_KeyDown(Block block, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == System.Windows.Forms.Keys.Tab) { ForCondition.SetFocus(); e.Handled = true; } if (e.KeyCode == System.Windows.Forms.Keys.Back) { this.SetFocus(); e.Handled = true; } if (e.KeyCode == System.Windows.Forms.Keys.Delete && ForInitializer.MyTextBox.CaretIsAtEnd) { ForCondition.SetCursorToTheBeginning(); e.Handled = true; } }