예제 #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);
     }
 }
예제 #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;
        }
예제 #3
0
 protected void btnSetCStack_Click(object sender, EventArgs e)
 {
     Rdn.SetCStackLimit();
 }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Rdn.Init();
 }