Exemple #1
0
        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("");
        }
Exemple #2
0
 public void reAssign(RichTextBox rtf)
 {
     this.intRtf = (RichBox)rtf;
 }
Exemple #3
0
 public void assignScript(RichBox script)
 {
     this.code = script;
 }
Exemple #4
0
 public RtfColoring(RichTextBox rtf)
 {
     this.intRtf = (RichBox)rtf;
 }