Exemplo n.º 1
0
 protected void btSubmitScript_Click(object sender, EventArgs e)
 {
     using (var content = new StreamReader(fuRscript.FileContent))
     {
         var    txt    = content.ReadToEnd();
         var    rfn    = txt.Replace(@"\", "/");
         string result = Rdn.Evaluate("source(" + rfn + ")");
         this.tbResult.Text = string.Concat(this.tbResult.Text, Environment.NewLine, result);
     }
 }
Exemplo n.º 2
0
        protected void btSubmitStatement_Click(object sender, EventArgs e)
        {
            var statements = this.tbStatement.Text;
            var lines      = statements.Replace(Environment.NewLine, "\n").Split('\n');

            foreach (var line in lines)
            {
                if (line.Trim() != "")
                {
                    string result = Rdn.Evaluate(line);
                    this.tbResult.Text = string.Concat(this.tbResult.Text, Environment.NewLine, result);
                }
            }
            this.tbStatement.Text = string.Empty;
        }
Exemplo n.º 3
0
 protected void btnSetCStack_Click(object sender, EventArgs e)
 {
     Rdn.SetCStackLimit();
 }
Exemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Rdn.Init();
 }