// 2003-1-9 you jianbo
?? // Remote editing and connection for panel control
??? System. reflection. Assembly assem;
??? Assem = system. reflection. Assembly. Load ("oceansoft. assloadxml ");
???
??? String typename = "";
??? Type hellotype;
??? Type [] mytype = assem. gettypes ();
??? Foreach (Type M in mytype)
??? {
???? Typename = M. Name. tostring ();
???? If (typename = mitem ["panellinkurl"]. tostring (). Trim () // dynamic call class
???? {
????? Hellotype = m;
????? Object OBJ = activator. createinstance (hellotype );
????
//????? // Set the Panel corresponding to the attribute value
//????? Propertyinfo ppropertydll3 = hellotype. getproperty ("usertype ");
//????? // Assign a value
//????? Object [] argsproperty3;
//????? Argsproperty3 = new object [1];?
//????? Argsproperty3 [0] = mitem ["panellinkurl"]. tostring (). Trim ();
//????? Ppropertydll3.setvalue (OBJ, argsproperty3 [0], null );
????? // Set the guid of the user with the attribute value
????? Propertyinfo ppropertydll1 = hellotype. getproperty ("userguid ");
????? // Assign a value
????? Object [] argsproperty1;
????? Argsproperty1 = new object [1];?
????? Argsproperty1 [0] = session ["waf_userguid"]. tostring ();
????? Ppropertydll1.setvalue (OBJ, argsproperty1 [0], null );
????? // Call a function (return value)
????? Methodinfo pmethod1 = hellotype. getmethod ("igetdata ");
????? Object [] argsmax = new object [0]; ??? // Input parameters
????? Object [] argsreturnmax = new object [1]; ??? // Number of returned Parameters
????? Argsreturnmax [0] = pmethod1.invoke (OBJ, argsmax );? // Return Value
???
????? Strxml = (string) argsreturnmax [0];
????}
???}
?? Doc. loadxml (strxml );
?? // End