Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 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;
        }