예제 #1
0
        void installedDrivers_ComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            string driverName   = installedDrivers_ComboBox.SelectedData["Name"];
            string architecture = installedDrivers_ComboBox.SelectedData["Architecture"];

            var matchingQueues = DriverUpgradeManager.SelectQueues(driverName, architecture);

            _upgradeManager.CurrentDriverName = driverName;

            _targetQueues = new SortableBindingList <DriverUpgradeData>(matchingQueues);
            driverToUpgrade_GridView.DataSource = null;
            driverToUpgrade_GridView.DataSource = _targetQueues;
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DriverUpgradeForm"/> class.
        /// </summary>
        /// <param name="queueManager">The manager.</param>
        public DriverUpgradeForm(QueueManager queueManager)
        {
            InitializeComponent();
            InitializeInlineComponent();

            _control      = new DriverInstallUserControl(queueManager);
            _control.Dock = DockStyle.Fill;

            _upgradeManager = new DriverUpgradeManager(queueManager);
            _upgradeManager.StatusChange     += new EventHandler <StatusEventArgs>(_manager_StatusChange);
            _upgradeManager.DataUpdated      += new EventHandler(_manager_DataUpdated);
            _upgradeManager.UpgradeCompleted += new EventHandler(_upgradeManager_UpgradeCompleted);

            driverToUpgrade_GridView.AutoGenerateColumns = false;
        }