Ejemplo n.º 1
0
        private void OnTestConnection(object sender, RoutedEventArgs e)
        {
            Remote        r    = new Remote(ipAddress.Text, usernameTextBox.Text, Password.Password);
            CollectorID   c_id = new CollectorID(-1, "Configuration.Disk");
            DataCollector c    = new DiskNameCollector(c_id, r);

            GlobalIsRunning.IsRunning = true;

            c.AttachDataAcquiredHandler(OnDataAcquired);
            c.Acquire();
        }
        private void OnChooseDrives(object sender, RoutedEventArgs e)
        {
            DeviceInfo di = DataContext as DeviceInfo;

            Remote        r    = new Remote(di.ipAddress, di.username, di.password);
            CollectorID   c_id = new CollectorID(-1, "CollectorsUserControl.Disk");
            DataCollector c    = new DiskNameCollector(c_id, r);

            GlobalIsRunning.IsRunning = true;

            c.AttachDataAcquiredHandler(OnDataAcquired);
            c.Acquire();
        }