private void loadPySSSMQData() { // Load data int.TryParse(form.dataStorage.getData("N20R1"), out int oR); int.TryParse(form.dataStorage.getData("N20R2"), out int oP); int.TryParse(form.dataStorage.getData("N20R3"), out int oY); screenFDAI.offsetR = oR / 100f; screenFDAI.offsetP = oP / 100f; screenFDAI.offsetY = oY / 100f; string mode = dataStorage.getData("FDAI_MODE"); switch (mode) { case "SURF": FDAImode = FDAIMode.SURF; break; case "INER": FDAImode = FDAIMode.INER; break; default: setMode(FDAIMode.SURF); break; } }
private void setMode(FDAIMode mode) { FDAImode = mode; if (mode == FDAIMode.SURF) { dataStorage.setData("FDAI_MODE", "SURF"); } else { dataStorage.setData("FDAI_MODE", "INER"); } }