public Mapping(openHAB.Widget aWidget, KeyValuePair <string, string> aPair) { Widget = aWidget; Name = aPair.Key; State = aPair.Value; ClickCommand = new Framework.DelegateCommand(OnClick); HoldCommand = new Framework.DelegateCommand(OnHold); }
public AddServerPage() { InitializeComponent(); Server = string.Empty; Port = "8080"; Path = "/rest"; AddServerCommand = new Framework.DelegateCommand(OnAddServer, CanAddServer); }
public AddServerPage() { InitializeComponent(); Server = string.Empty; Port = "8080"; Path = "/rest"; AddServerCommand = new Framework.DelegateCommand(OnAddServer, CanAddServer); }
public Video(openHAB.Widget aWidget) : base(aWidget) { ClickCommand = new Framework.DelegateCommand(OnClick); ShowImageCommand = new Framework.DelegateCommand(OnShowImage); mPlaylist.Add(new Microsoft.SilverlightMediaFramework.Core.Media.PlaylistItem { DeliveryMethod = Microsoft.SilverlightMediaFramework.Plugins.Primitives.DeliveryMethods.AdaptiveStreaming, MediaSource = VideoUri }); }
public Video(openHAB.Widget aWidget) : base(aWidget) { ClickCommand = new Framework.DelegateCommand(OnClick); ShowImageCommand = new Framework.DelegateCommand(OnShowImage); mPlaylist.Add(new Microsoft.SilverlightMediaFramework.Core.Media.PlaylistItem { DeliveryMethod = Microsoft.SilverlightMediaFramework.Plugins.Primitives.DeliveryMethods.AdaptiveStreaming, MediaSource = VideoUri }); }
public Chart(openHAB.Widget aWidget) : base(aWidget) { ClickCommand = new Framework.DelegateCommand(OnClick); ShowImageCommand = new Framework.DelegateCommand(OnShowImage); mTimer = new DispatcherTimer() { Interval = TimeSpan.FromMilliseconds(Widget.Refresh) }; mTimer.Tick += OnTick; mTimer.Start(); }
public Text(openHAB.Widget aWidget) : base(aWidget) { if (aWidget.Item != null) { if (aWidget.Item.Type == openHAB.Item.ItemType.ContactItem) { Text = new SplitText(Colors.White, aWidget.Item.State == "OPEN" ? Colors.White : Color.FromArgb(255,32,32,32)) { Text = aWidget.Label }; } } ClickCommand = new Framework.DelegateCommand(OnClick); }
public Text(openHAB.Widget aWidget) : base(aWidget) { if (aWidget.Item != null) { if (aWidget.Item.Type == openHAB.Item.ItemType.ContactItem) { Text = new SplitText(Colors.White, aWidget.Item.State == "OPEN" ? Colors.White : Color.FromArgb(255, 32, 32, 32)) { Text = aWidget.Label }; } } ClickCommand = new Framework.DelegateCommand(OnClick); }
public Server(ServerSelection aPage, string aName, string aDescription, Uri aUri) { mPage = aPage; Name = aName; Description = aDescription; Uri = aUri; IsOnline = false; Version = "?"; var wc = new WebClient(); wc.DownloadStringCompleted += OnServerAnswer; wc.DownloadStringAsync(new Uri(aUri, "static/version?q=" + Environment.TickCount)); ConnectCommand = new Framework.DelegateCommand(OnConnect); ConnectAndSetDefaultCommand = new Framework.DelegateCommand(OnConnectAndSetDefault); AddCommand = new Framework.DelegateCommand(OnAdd); RemoveCommand = new Framework.DelegateCommand(OnRemove); }
public Server(ServerSelection aPage, string aName, string aDescription, Uri aUri) { mPage = aPage; Name = aName; Description = aDescription; Uri = aUri; IsOnline = false; Version = "?"; var wc = new WebClient(); wc.DownloadStringCompleted += OnServerAnswer; wc.DownloadStringAsync(new Uri(aUri, "static/version?q=" + Environment.TickCount)); ConnectCommand = new Framework.DelegateCommand(OnConnect); ConnectAndSetDefaultCommand = new Framework.DelegateCommand(OnConnectAndSetDefault); AddCommand = new Framework.DelegateCommand(OnAdd); RemoveCommand = new Framework.DelegateCommand(OnRemove); }
public Webview(openHAB.Widget aWidget) : base(aWidget) { ClickCommand = new Framework.DelegateCommand(OnClick); ShowImageCommand = new Framework.DelegateCommand(OnShowImage); }
public SwitchRollerShutter(openHAB.Widget aWidget) : base(aWidget) { StopCommand = new Framework.DelegateCommand(OnStop); }
public SwitchButton(openHAB.Widget aWidget) : base(aWidget) { ClickCommand = new Framework.DelegateCommand(OnClick); }
public Group(openHAB.Widget aWidget) : base(aWidget) { ClickCommand = new Framework.DelegateCommand(OnClick); }
public SwitchRollerShutter(openHAB.Widget aWidget) : base(aWidget) { StopCommand = new Framework.DelegateCommand(OnStop); }
public SwitchButton(openHAB.Widget aWidget) : base(aWidget) { ClickCommand = new Framework.DelegateCommand(OnClick); }
public Selection(openHAB.Widget aWidget) : base(aWidget) { mMappings = new Mappings(aWidget); ClickCommand = new Framework.DelegateCommand(OnClick); }
public Selection(openHAB.Widget aWidget) : base(aWidget) { mMappings = new Mappings(aWidget); ClickCommand = new Framework.DelegateCommand(OnClick); }
public Setpoint(openHAB.Widget aWidget) : base(aWidget) { IncreaseCommand = new Framework.DelegateCommand(OnIncrease); DecreaseCommand = new Framework.DelegateCommand(OnDecrease); }
public Group(openHAB.Widget aWidget) : base(aWidget) { ClickCommand = new Framework.DelegateCommand(OnClick); }
public Image(openHAB.Widget aWidget) : base(aWidget) { ClickCommand = new Framework.DelegateCommand(OnClick); ShowImageCommand = new Framework.DelegateCommand(OnShowImage); }
public Setpoint(openHAB.Widget aWidget) : base(aWidget) { IncreaseCommand = new Framework.DelegateCommand(OnIncrease); DecreaseCommand = new Framework.DelegateCommand(OnDecrease); }