Ejemplo n.º 1
0
 private void ConnectionControl_connectionStateChanged(ConnectionState state)
 {
     ManualPositionControl.SetUiEnabled(state == ConnectionState.Connected);
     FizVizConfigControl.SetUiEnabled(state == ConnectionState.Connected);
     BackgroundColorConfigControl.SetUiEnabled(state == ConnectionState.Connected);
     MinMaxConfigControl.SetUiEnabled(state == ConnectionState.Connected);
 }
Ejemplo n.º 2
0
        public MainPage()
        {
            InitializeComponent();
            Loaded += (s, e) =>
            {
                ConnectionControl.ConnectionStateChanged += ConnectionControl_connectionStateChanged;

                ManualPositionControl.SetUiEnabled(false);
                FizVizConfigControl.SetUiEnabled(false);
                BackgroundColorConfigControl.SetUiEnabled(false);
                MinMaxConfigControl.SetUiEnabled(false);
            };
        }