コード例 #1
0
ファイル: NumberWidget.cs プロジェクト: altima/openhab.winrt
 public NumberWidget(Widget widget)
 {
     this.widgetId = widget.widgetId;
     this.type = widget.type;
     this.label = widget.label;
     this.icon = widget.icon;
     this.widget = widget.widget;
     this.linkedPage = widget.linkedPage;
     this.item = widget.item;
     this._once = true;
     this.pathToIcon = widget.pathToIcon;
     base.widgetId = widget.widgetId;
     base.type = widget.type;
     base.label = widget.label;
     base.icon = widget.icon;
     base.widget = widget.widget;
     base.linkedPage = widget.linkedPage;
     base.item = widget.item;
     base._once = true;
 }
コード例 #2
0
ファイル: WebViewWidget.cs プロジェクト: altima/openhab.winrt
 public WebViewWidget(Widget widget)
 {
     this.widgetId = widget.widgetId;
     this.type = widget.type;
     this.label = widget.label;
     this.icon = widget.icon;
     //this.widget = widget.widget;
     this.linkedPage = widget.linkedPage;
     this.item = widget.item;
     this.url = widget.url;
     this._once = true;
     this.pathToIcon = widget.pathToIcon;
     base.widgetId = widget.widgetId;
     base.type = widget.type;
     base.label = widget.label;
     base.icon = widget.icon;
     //base.widget = widget.widget;
     base.linkedPage = widget.linkedPage;
     base.item = widget.item;
     base._once = true;
 }
コード例 #3
0
 public SelectionWidget(Widget widget)
 {
     this.widgetId = widget.widgetId;
     this.type = widget.type;
     this.label = widget.label;
     this.icon = widget.icon;
     this.widget = widget.widget;
     this.linkedPage = widget.linkedPage;
     this.item = widget.item;
     this._once = true;
     this.mapping = widget.mapping;
     this.pathToIcon = widget.pathToIcon;
     base.widgetId = widget.widgetId;
     base.type = widget.type;
     base.label = widget.label;
     base.icon = widget.icon;
     base.widget = widget.widget;
     base.linkedPage = widget.linkedPage;
     base.item = widget.item;
     base._once = true;
 }
コード例 #4
0
ファイル: TextWidget.cs プロジェクト: altima/openhab.winrt
        //  String labelState;

        public TextWidget(Widget widget)
        {
            this.widgetId = widget.widgetId;
            this.type = widget.type;
            this.label = widget.label;
            this.icon = widget.icon;
            this.widget = widget.widget;
            this.linkedPage = widget.linkedPage;
            this.item = widget.item;
            this._once = true;
            this.guiText = widget.guiText;
            this.guiValue = widget.guiValue;
            this.pathToIcon = widget.pathToIcon;
            // this.labelState = widget.label.Substring(2);
            base.widgetId = widget.widgetId;
            base.type = widget.type;
            base.label = widget.label;
            base.icon = widget.icon;
            base.widget = widget.widget;
            base.linkedPage = widget.linkedPage;
            base.item = widget.item;
            base._once = true;
        }