예제 #1
0
        private void btn_run_Click(object sender, EventArgs e)
        {
            RunGCodeEventArgs args = new RunGCodeEventArgs();

            args.FilePath = this.GCodeFile;
            OnRunGCodeEvent(args);
        }
예제 #2
0
        protected virtual void OnRunGCodeEvent(RunGCodeEventArgs e)
        {
            EventHandler handler = RunGCode;

            if (handler != null)
            {
                handler(this, e);
            }
        }