mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-13 03:13:53 +00:00
* ControlPage.xaml.cs:
* QLevelsCell.cs: Add more levels sliders * QBrowserPage.xaml.cs: * QBrowserViewModel.cs: Switch off browser updating when connected
This commit is contained in:
@@ -13,9 +13,9 @@ namespace qController.ViewModels
|
||||
public class QBrowserViewModel : INotifyPropertyChanged
|
||||
{
|
||||
QBrowser browser;
|
||||
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public bool autoUpdate = false;
|
||||
public ObservableCollection<QServerViewModel> ServersGrouped { get; set; }
|
||||
public QBrowserViewModel(QBrowser browser)
|
||||
{
|
||||
@@ -24,17 +24,18 @@ namespace qController.ViewModels
|
||||
|
||||
this.browser.ServerFound += OnServerFound;
|
||||
this.browser.ServerLost += OnServerLost;
|
||||
|
||||
Device.StartTimer(TimeSpan.FromSeconds(4), () =>
|
||||
{
|
||||
Task.Run(async () =>
|
||||
{
|
||||
this.browser.ProbeForQLabInstances();
|
||||
// do something with time...
|
||||
if(autoUpdate)
|
||||
this.browser.ProbeForQLabInstances();
|
||||
});
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void OnServerFound(object source, QServerFoundArgs args)
|
||||
|
||||
Reference in New Issue
Block a user