private void btn_run_Click(object sender, EventArgs e) { RunGCodeEventArgs args = new RunGCodeEventArgs(); args.FilePath = this.GCodeFile; OnRunGCodeEvent(args); }
protected virtual void OnRunGCodeEvent(RunGCodeEventArgs e) { EventHandler handler = RunGCode; if (handler != null) { handler(this, e); } }