private void btnAddVariable_Click(object sender, EventArgs e) { SelectedVariable = new Model.PxVariable() {Variable = "New variable"}; // lvVariables.Items.Add(SelectedVariable.Variable); pxVariableBindingSource.DataSource = SelectedVariable; lvVariables.Enabled = false; }
private void lvVariables_SelectedIndexChanged(object sender, EventArgs e) { if (lvVariables.SelectedIndices.Count == 1) { SelectedVariable = VariableFacade.GetVarible(lvVariables.SelectedItems[0].Text); pxVariableBindingSource.DataSource = SelectedVariable; } }
private void btnAddVariable_Click(object sender, EventArgs e) { SelectedVariable = new Model.PxVariable() { Variable = "New variable" }; // lvVariables.Items.Add(SelectedVariable.Variable); pxVariableBindingSource.DataSource = SelectedVariable; lvVariables.Enabled = false; }