コード例 #1
0
 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;
 }
コード例 #2
0
 private void lvVariables_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (lvVariables.SelectedIndices.Count == 1)
     {
         SelectedVariable = VariableFacade.GetVarible(lvVariables.SelectedItems[0].Text);
         pxVariableBindingSource.DataSource = SelectedVariable;
     }
 }
コード例 #3
0
 private void lvVariables_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (lvVariables.SelectedIndices.Count == 1)
     {
         SelectedVariable = VariableFacade.GetVarible(lvVariables.SelectedItems[0].Text);
         pxVariableBindingSource.DataSource = SelectedVariable;
     }
 }
コード例 #4
0
 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;
 }