Ejemplo n.º 1
0
        /// <summary>
        /// The default constructor with stylesheet.
        /// </summary>
        /// <remarks>Widget ID will be replaced as the application ID.</remarks>
        /// <param name="widgetType">Derived widget class type.</param>
        /// <param name="styleSheet">The styleSheet url.</param>
        /// <since_tizen> 4 </since_tizen>
        public NUIWidgetApplication(System.Type widgetType, string styleSheet) : base(new NUIWidgetCoreBackend(styleSheet))
        {
            NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;

            core?.RegisterWidgetInfo(new Dictionary <System.Type, string> {
                { widgetType, ApplicationInfo.ApplicationId }
            });
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The default constructor with stylesheet.
        /// </summary>
        /// <remarks>Widget ID will be replaced as the application ID.</remarks>
        /// <param name="widgetType">Derived widget class type.</param>
        /// <param name="styleSheet">The styleSheet url.</param>
        /// <since_tizen> 4 </since_tizen>
        public NUIWidgetApplication(System.Type widgetType, string styleSheet) : base(new NUIWidgetCoreBackend(styleSheet))
        {
            Registry.Instance.SavedApplicationThread = Thread.CurrentThread;
            NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;

            core?.RegisterWidgetInfo(new Dictionary <System.Type, string> {
                { widgetType, ApplicationInfo.ApplicationId }
            });
        }
Ejemplo n.º 3
0
 /// <summary>
 /// The constructor for multi widget class and instance.
 /// </summary>
 /// <param name="widgetTypes">List of derived widget class type.</param>
 public NUIWidgetApplication(Dictionary <System.Type, string> widgetTypes) : base(new NUIWidgetCoreBackend())
 {
     if (widgetTypes == null)
     {
         throw new InvalidOperationException("Dictionary is null");
     }
     else
     {
         NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;
         core?.RegisterWidgetInfo(widgetTypes);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// The constructor for multi widget class and instance.
 /// </summary>
 /// <param name="widgetTypes">List of derived widget class type.</param>
 public NUIWidgetApplication(Dictionary <System.Type, string> widgetTypes) : base(new NUIWidgetCoreBackend())
 {
     if (widgetTypes == null)
     {
         throw new InvalidOperationException("Dictionary is null");
     }
     else
     {
         Registry.Instance.SavedApplicationThread = Thread.CurrentThread;
         NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;
         core?.RegisterWidgetInfo(widgetTypes);
     }
 }
Ejemplo n.º 5
0
        public NUIWidgetApplication(Dictionary <System.Type, string> widgetTypes) : base(new NUIWidgetCoreBackend())
        {
            NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;

            core?.RegisterWidgetInfo(widgetTypes);
        }