+ }
+
+ /// <summary>
+ /// Adds a NUIGadget to the NUIGadgetManager.
+ /// </summary>
+ /// <param name="resourceType">The resource type of the NUIGadget package.</param>
+ /// <param name="className">The class name of the NUIGadget.</param>
+ /// <returns>The NUIGadget object.</returns>
+ /// <exception cref="ArgumentException">Thrown when failed because of a invalid argument.</exception>
+ /// <exception cref="InvalidOperationException">Thrown when failed because of an invalid operation.</exception>
+ /// <since_tizen> 10 </since_tizen>
+ public static NUIGadget Add(string resourceType, string className)
+ {
+ if (string.IsNullOrEmpty(resourceType) || string.IsNullOrEmpty(className))
+ {
+ throw new ArgumentException("Invalid argument");
+ }
+
+ NUIGadgetInfo info = Find(resourceType);
+ try
+ {
+ Load(info);
+ }