private void buttonRunScript_Click(object sender, EventArgs e) { ExecuteScriptEventArgs args = new ExecuteScriptEventArgs { Script = textBoxSript.Text }; OnScriptReady(args); Close(); }
protected virtual void OnScriptReady(ExecuteScriptEventArgs e) { ExecuteScriptEventHandler handler = ScriptReady; handler?.Invoke(this, e); }