Example #1
0
 private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (ReoScriptEditor editor = new ReoScriptEditor())
     {
         editor.ShowDialog();
     }
 }
Example #2
0
 private void ShowScript(byte[] buf, bool directAccess)
 {
     using (ReoScriptEditor editor = new ReoScriptEditor())
     {
         using (StreamReader sr = new StreamReader(new MemoryStream(buf)))
         {
             if (directAccess)
             {
                 editor.Srm.WorkMode |= Unvell.ReoScript.MachineWorkMode.AllowDirectAccess
                     | Unvell.ReoScript.MachineWorkMode.AllowCLREventBind
                     | Unvell.ReoScript.MachineWorkMode.AllowImportTypeInScript;
             }
             editor.Script = sr.ReadToEnd();
         }
         editor.ShowDialog();
     }
 }