public static KeyPadLayout GetKeyPadLayout(MatrixMX.KeyPadControl KPSettings) { KeyPadLayout layout = new KeyPadLayout(); layout.EnableKeyPad = false; layout.EnableCustom = false; layout.KeyPadMapping = false; layout.Label1 = false; string type = Settings.Instance.Type; if (type != null) { if (!(type == "CFontz") && !(type == "MatrixMX")) { if (((type == "VLSYS_Mplay") || (type == "MatrixGX")) || (type == "iMONLCDg")) { } } else { layout.EnableKeyPad = true; if (KPSettings.EnableKeyPad) { layout.EnableCustom = true; if (KPSettings.EnableCustom) { layout.KeyPadMapping = true; } } return(layout); } } layout.Label1 = true; return(layout); }
public static KeyPadLayout GetKeyPadLayout(MatrixMX.KeyPadControl KPSettings) { KeyPadLayout layout = new KeyPadLayout(); layout.EnableKeyPad = false; layout.EnableCustom = false; layout.KeyPadMapping = false; layout.Label1 = false; string type = Settings.Instance.Type; if (type != null) { if (!(type == "CFontz") && !(type == "MatrixMX")) { if (((type == "VLSYS_Mplay") || (type == "MatrixGX")) || (type == "iMONLCDg")) {} } else { layout.EnableKeyPad = true; if (KPSettings.EnableKeyPad) { layout.EnableCustom = true; if (KPSettings.EnableCustom) { layout.KeyPadMapping = true; } } return layout; } } layout.Label1 = true; return layout; }