public override void InitializePageControl() { base.InitializePageControl(); ControlsInspector.AddControl(dataGridViewDriverPackages, new ControlDataStateEvaluator(ValidateSelectedPack), "Select driver pack to download"); dataGridViewDriverPackages.SelectionMode = DataGridViewSelectionMode.FullRowSelect; Initialized = false; }
public override void InitializePageControl() { base.InitializePageControl(); ControlsInspector.AddControl(listViewCollections, new ControlDataStateEvaluator(ValidateSelectedCollections), "Select collections for deployments"); UtilitiesClass.UpdateListViewColumnsSize(listViewCollections, columnHeaderName); Initialized = true; }
public override void InitializePageControl() { base.InitializePageControl(); ControlsInspector.AddControl(dataGridViewDriverPackages, new ControlDataStateEvaluator(ValidateSelectedDriverPackages), "Select packages to import"); dataGridViewDriverPackages.SelectionMode = DataGridViewSelectionMode.FullRowSelect; Initialized = false; InitializeDataGridView(); }
public AddResourcesListDialog() { InitializeComponent(); Title = "Add Resources to Collection"; Updater.CheckUpdates(); controlsInspector = new ControlsInspector(); controlsInspector.AddControl(listViewSelectedResources, new ControlDataStateEvaluator(ValidateResourceValue), "Search for resources"); controlsInspector.InspectAll(); }
public override void InitializePageControl() { base.InitializePageControl(); labelDestination.Text = registry.ReadString("DriverSourceFolder"); ControlsInspector.AddControl(dataGridViewDrivers, new ControlDataStateEvaluator(ValidateSelectedDrivers), "Select drivers to capture"); dataGridViewDrivers.SelectionMode = DataGridViewSelectionMode.FullRowSelect; Initialized = false; InitializeDataGridView(); }
public override void InitializePageControl() { base.InitializePageControl(); dataGridViewApplications.Rows.Clear(); ControlsInspector.AddControl(dataGridViewApplications, new ControlDataStateEvaluator(ValidateSelectedApplications), "Select an application"); string query = string.Format("SELECT * FROM SMS_Application WHERE IsLatest = 1 AND IsExpired = 1 AND HasContent = 1"); backgroundWorker = new SmsBackgroundWorker(); backgroundWorker.QueryProcessorCompleted += new EventHandler <RunWorkerCompletedEventArgs>(BackgroundWorker_RunWorkerCompleted); backgroundWorker.QueryProcessorObjectsReady += new EventHandler <QueryProcessorObjectsEventArgs>(BackgroundWorker_QueryProcessorObjectsReady); UseWaitCursor = true; QueryProcessor.ProcessQuery(backgroundWorker, query); }
public override void InitializePageControl() { base.InitializePageControl(); dataGridViewUpdates.Rows.Clear(); dataGridViewUpdates.SelectionMode = DataGridViewSelectionMode.FullRowSelect; ControlsInspector.AddControl(dataGridViewUpdates, new ControlDataStateEvaluator(ValidateSelectedUpdatesPackages), "Select updates to remove"); string query = string.Format("SELECT SU.CI_ID,SU.LocalizedDisplayName,SU.IsExpired,SU.IsSuperseded,SU.ArticleID FROM SMS_SoftwareUpdate AS SU JOIN SMS_CIRelation AS CIR ON SU.CI_ID = CIR.ToCIID WHERE CIR.RelationType = 1 AND (SU.IsExpired = 1 OR SU.IsSuperseded = 1)"); backgroundWorker = new SmsBackgroundWorker(); backgroundWorker.QueryProcessorCompleted += new EventHandler <RunWorkerCompletedEventArgs>(BackgroundWorker_RunWorkerCompleted); backgroundWorker.QueryProcessorObjectsReady += new EventHandler <QueryProcessorObjectsEventArgs>(BackgroundWorker_QueryProcessorObjectsReady); UseWaitCursor = true; QueryProcessor.ProcessQuery(backgroundWorker, query); }
public override void InitializePageControl() { base.InitializePageControl(); dataGridViewCollections.Rows.Clear(); dataGridViewCollections.SelectionMode = DataGridViewSelectionMode.FullRowSelect; ControlsInspector.AddControl(dataGridViewCollections, new ControlDataStateEvaluator(ValidateSelectedCollections), "Select collections to disable"); string query = string.Format("SELECT * FROM SMS_Collection WHERE RefreshType IN (4,6) AND CollectionType = 2 AND CollectionID NOT LIKE 'SMS%'"); smsBackgroundWorker = new SmsBackgroundWorker(); smsBackgroundWorker.QueryProcessorCompleted += new EventHandler <RunWorkerCompletedEventArgs>(BackgroundWorker_RunWorkerCompleted); smsBackgroundWorker.QueryProcessorObjectsReady += new EventHandler <QueryProcessorObjectsEventArgs>(BackgroundWorker_QueryProcessorObjectsReady); UseWaitCursor = true; QueryProcessor.ProcessQuery(smsBackgroundWorker, query); }