private String composeCodeByPlaceHolder() { if (this.widget != null) { string[] parts = this.widget.CodeInsert.Split(' '); string code = ""; UserTextInput input = new UserTextInput(); input.groupBox.Text = "Insert name of"; foreach (string pstr in parts) { if (pstr.Length > 0 && pstr[0] == '!') { input.textinfo.Text = pstr.Substring(1); if (input.ShowDialog() == DialogResult.OK) { code += input.textinfo.Text.Replace(" ", "_") + " "; } else { code += pstr.Replace("!", "") + " "; } } else { code += pstr + " "; } } return(code); } return(""); }
public void reAssign(RichTextBox rtf) { this.intRtf = (RichBox)rtf; }
public void assignScript(RichBox script) { this.code = script; }
public RtfColoring(RichTextBox rtf) { this.intRtf = (RichBox)rtf; }