private void btnNewValuepool_Click(object sender, EventArgs e) { CreateValuePoolDialog dlg = new CreateValuePoolDialog(); if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { lbValuePools.DataSource = VariableFacade.GetValuePools(); lbValuePools.SelectedValue = dlg.SelectedValuePool.ValuePool; } }
private void ChooseValuset_Load(object sender, EventArgs e) { lbValuePools.DataSource = VariableFacade.GetValuePools(); if (!String.IsNullOrEmpty(selectedValuePool)) { lbValuePools.SelectedValue = selectedValuePool; } if (!String.IsNullOrEmpty(selectedValueset)) { lbValuesets.SelectedValue = selectedValueset; } valuePresComboBox.DataSource = Option.GetOptions("ValuePres"); SelectedValue = (PxValue)dgwValues.SelectedRows[0].DataBoundItem; }
private void RefreshValuePool() { valuePoolComboBox.DataSource = VariableFacade.GetValuePools(); pxValueSetBindingSource.CurrencyManager.Refresh(); }