private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (profileSelection.SelectedIndex != -1)
            {
                IPConnectionProfile prof = Profiles[profileSelection.SelectedValue.ToString()];

                AddressTextbox.Text = prof.Address.ToString();
                portBox.Value       = prof.Port;
            }
        }
        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            SelectedProfile = Profiles.ElementAt(profileSelection.SelectedIndex).Value;

            if (SelectedProfile != Profiles["Most Recent"])
            {
                Profiles["Most Recent"] = new IPConnectionProfile("Most Recent", SelectedProfile.Address, SelectedProfile.Port);
            }

            SaveProfiles();


            this.DialogResult = true;
        }
Beispiel #3
0
        public FrameClient(IPConnectionProfile profile)
        {
            this.ConnectionProfile = profile;
            _streamdetails         = "ASU { ";

            if (profile.Name != "Most Recent")
            {
                _streamdetails += profile.Name + " ";
            }

            _streamdetails += profile.Address + ":" + profile.Port;

            _streamdetails += " }";

            ReceivedStatisticsLoop          = new DispatcherTimer();
            ReceivedStatisticsLoop.Interval = TimeSpan.FromSeconds(1);
            ReceivedStatisticsLoop.Tick    += ReceivedStatisticsLoop_Tick;
        }