Пример #1
0
        private void buttonStart_Click(object sender, RoutedEventArgs e)
        {
            String SelectedInterface = InterfacesExpander.Header.ToString();

             if ( "Please select an interface" != SelectedInterface)
             {
            ctrl = new StatCollectorCtrl(this, SelectedInterface, 1000);
            myThread = new Thread(new ThreadStart(ctrl.Run));
            myThread.Start();
             }
             else
             {
            MessageBox.Show( "Please select an interface" );
             }
        }
Пример #2
0
        private void buttonStart_Click(object sender, RoutedEventArgs e)
        {
            String SelectedInterface = InterfacesExpander.Header.ToString();

            if ("Please select an interface" != SelectedInterface)
            {
                ctrl     = new StatCollectorCtrl(this, SelectedInterface, 1000);
                myThread = new Thread(new ThreadStart(ctrl.Run));
                myThread.Start();
            }
            else
            {
                MessageBox.Show("Please select an interface");
            }
        }