public ConfigurationWindow()
        {
            InitializeComponent();

            iConfiguration = Configuration.Load();

            iSubnetList = new SubnetList(this.Dispatcher);

            iSubnetList.CountChanged += EventSubnetListCountChanged;

            comboBoxNetwork.ItemsSource = iSubnetList;

            this.DataContext = this;

            buttonChannelNew.Click += EventButtonChannelNewClick;
            comboBoxNetwork.SelectionChanged += EventComboBoxNetworkSelectionChanged;
        }
Esempio n. 2
0
 private static Configuration New(string aPath)
 {
     Configuration configuration = new Configuration();
     configuration.Subnet = 0;
     configuration.Multicast = false;
     configuration.Channel = (uint)(new Random().Next(65535) + 1);
     configuration.Ttl = 1;
     configuration.Latency = 100;
     configuration.Preset = 0;
     configuration.SetPath(aPath);
     configuration.Save();
     return (configuration);
 }