Inheritance: System.EventArgs
Exemplo n.º 1
0
 public virtual void OnInputEntered(InputEventArgs e)
 {
     var handler = GotInput;
     if(handler != null)
         handler(this,e);
 }
Exemplo n.º 2
0
        private void EvaluateFunction(object sender, InputEventArgs args)
        {
            string s = args.InputValue.Substring(9, args.InputValue.Length - "Function:".Length);
            if (!s.Contains(";"))
                s += ";";
            string code = string.Format(@"//css_include {0}\Installed\YnoteCommons.ysr
            using System.Windows.Forms;
            using System.IO;

            public static void Main(IYnote yn){{
            var ynote = new YnoteCommons(yn);{1}}}", GlobalSettings.SettingsDir, s);
            YnoteScript.RunCode(code);
        }