예제 #1
0
        /// <summary>
        /// Downloads the driver package.
        /// </summary>
        public void DownloadDriverPackage()
        {
            using (PrintDriverLocalCopyForm form = new PrintDriverLocalCopyForm())
            {
                form.ShowDialog();

                if (form.DriverPaths.Count > 0)
                {
                    _manager.DriverPackagePaths.AddRange(form.DriverPaths);
                }
            }
        }
        private void downloadDriver_Button_Click(object sender, EventArgs e)
        {
            using (PrintDriverLocalCopyForm form = new PrintDriverLocalCopyForm())
            {
                form.ShowDialog();

                if (form.DriverPaths.Count > 0)
                {
                    string firstItem = form.DriverPaths[0];

                    _manager.DriverPackagePaths.AddRange(form.DriverPaths);
                    UpdateDriverPathsComboBox();

                    driverPackagePath_ComboBox.SelectedItem = firstItem;
                }
            }
        }