Exemplo n.º 1
0
 public HpkInstallControl()
 {
     InitializeComponent();
     _hpkInstallList = new HPKInstallData();
     _viewList       = new List <HpkInstallTableData>();
     hpkInstallTableDataBindingSource.ListChanged += BindInstallHpkGrid;
     hpkInstallGridView.CellClick += PopulateHpkInstallOptions;
     AddEventHandlers();
 }
Exemplo n.º 2
0
        public void SetControl(IEnumerable <IComponentData> list)
        {
            RemoveEventHandlers();

            _hpkInstallList = list.OfType <HPKInstallData>().FirstOrDefault();

            foreach (var item in _hpkInstallList.InstallFileList)
            {
                _viewList.Add(new HpkInstallTableData(item.PackageName, item.Uuid, item.FilePath));
            }
            hpkInstallTableDataBindingSource.DataSource = _viewList;
            validate_configurationData();
            retryCount_numericUpDown.Value = _hpkInstallList.RetryCount;
            retry_CheckBox.Checked         = _hpkInstallList.RetryCheck;
            skip_CheckBox.Checked          = _hpkInstallList.SkipCheck;
            AddEventHandlers();
        }