public virtual void OnInputEntered(InputEventArgs e) { var handler = GotInput; if(handler != null) handler(this,e); }
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); }