//private void UpdateModals(GrblCommand cmd) //update modals - BUILD IF NEEDED //{ // bool delete = !cmd.JustBuilt; // if (!cmd.JustBuilt) cmd.BuildHelper(); // UpdateModalsNB(cmd); // if (delete) cmd.DeleteHelper(); //} protected void UpdateModalsNB(GrblCommand cmd) //update modals - EXTERNAL BUILD { MotionMode.Update(cmd.G); CoordinateSelect.Update(cmd.G); PlaneSelect.Update(cmd.G); DistanceMode.Update(cmd.G); ArcDistanceMode.Update(cmd.G); FeedRateMode.Update(cmd.G); CutterRadiusCompensation.Update(cmd.G); ToolLengthOffset.Update(cmd.G); ProgramMode.Update(cmd.M); CoolantState.Update(cmd.M); SpindleState.Update(cmd.M); }
protected void UpdateModals(GrblCommand cmd) { Element G = cmd.GetElement('G'); Element M = cmd.GetElement('M'); MotionMode.Update(G, M); CoordinateSelect.Update(G, M); PlaneSelect.Update(G, M); DistanceMode.Update(G, M); ArcDistanceMode.Update(G, M); FeedRateMode.Update(G, M); CutterRadiusCompensation.Update(G, M); ToolLengthOffset.Update(G, M); ProgramMode.Update(G, M); SpindleState.Update(G, M); CoolantState.Update(G, M); }