Exemple #1
0
        public ProcessVar GetSelectedProcessVar()
        {
            ProcessVar pVar = null;

            if (this.listViewVariable.SelectedItems.Count == 1)
            {
                ListViewVariableItem lvvi = this.listViewVariable.SelectedItems[0] as ListViewVariableItem;
                pVar = lvvi.Variable;
            }
            return(pVar);
        }
Exemple #2
0
 public void SelectProcessVariable(ProcessVar procVar)
 {
     for (int i = 0; i < this.listViewVariable.Items.Count; i++)
     {
         ListViewVariableItem lvvi = this.listViewVariable.Items[i] as ListViewVariableItem;
         if (lvvi.Variable.Equals(procVar))
         {
             IProcessVarOwner iProcVarOwner = procVar.Owner;
             this.SelectProcessVarOwner(iProcVarOwner);
             lvvi.Selected = true;
             break;
         }
     }
 }