public RoleModel(ProxyParameter param) { PRGN = new String[] { "AGR_DEFINE", "AGR_FLAGS", "AGR_AGRS", "AGR_TCODES", "AGR_1250", "AGR_1251", "AGR_1252", "AGR_1016", "AGR_USERS", "AGR_TEXTS" }; this.param = param; this.helper = new SAPImportHelper(this.param); db = new SqlCeEngine("Data Source=\"" + fileSDF + "\""); con = new SqlCeConnection(db.LocalConnectionString); dsRoles = new DataSet(); da = new SqlCeDataAdapter(); da.FillLoadOption = LoadOption.OverwriteChanges; da.Fill(dsRoles); }
private void InsepectorProxyParamenter(SerializedProperty property, ProxyParameter parameter, string name = null) { if (property == null || parameter == null) { return; } var intProperty = property.FindPropertyRelative("intValue"); var boolProperty = property.FindPropertyRelative("boolValue"); var stringProperty = property.FindPropertyRelative("stringValue"); var floatProperty = property.FindPropertyRelative("floatValue"); var gameObjectProperty = property.FindPropertyRelative("gameObject"); var useFlagProperty = property.FindPropertyRelative("useFlag"); useFlagProperty.stringValue = parameter.useFlag; switch (parameter.useFlag) { case "I": EditorGUILayout.PropertyField(intProperty, new GUIContent(name ?? "int")); break; case "B": EditorGUILayout.PropertyField(boolProperty, new GUIContent(name ?? "bool")); break; case "F": EditorGUILayout.PropertyField(floatProperty, new GUIContent(name ?? "float")); break; case "S": EditorGUILayout.PropertyField(stringProperty, new GUIContent(name ?? "string")); break; case "O": EditorGUILayout.PropertyField(gameObjectProperty, new GUIContent(name ?? "Game Object")); break; default: break; } }
public RoleController(ProxyParameter param) { role = new RoleModel(param); }
public static void Bind(String name, ProxyParameter parameter, Component component) { Reflection.SetField(component, name, parameter.GetObjectValue()); }