Inheritance: System.Windows.Controls.StackPanel
Ejemplo n.º 1
0
        private void OnSystemDiscovered(DiscoveredSystem newSystem)
        {
            RemoteSystemEntry newEntry = new RemoteSystemEntry();

            newEntry.RemoteSystem = newSystem;

            remoteClientList.Items.Add(newEntry);
        }
Ejemplo n.º 2
0
        private void remoteClientList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            RemoteSystemEntry selectedItem = remoteClientList.SelectedItem as RemoteSystemEntry;

            addressBox.Text = selectedItem.RemoteSystem.GetName();

            Array systemRoleValues = Enum.GetValues(typeof(SystemRole));

            for (int i = 0; i < systemRoleValues.Length; ++i)
            {
                if ((SystemRole)systemRoleValues.GetValue(i) == selectedItem.RemoteSystem.GetRole())
                {
                    roleComboBox.SelectedIndex = i;
                    break;
                }
            }
        }
Ejemplo n.º 3
0
        private void OnSystemDiscovered(DiscoveredSystem newSystem)
        {
            RemoteSystemEntry newEntry = new RemoteSystemEntry();
            newEntry.RemoteSystem = newSystem;

            remoteClientList.Items.Add(newEntry);
        }