AddSelection() public method

public AddSelection ( int i ) : bool
i int
return bool
コード例 #1
0
ファイル: ComboBox.cs プロジェクト: ABEMBARKA/monoUI
        public bool AddSelection(int i)
        {
            bool success = selectionHelper.AddSelection(i);

            if (success)
            {
                string propagateName = null;
                if (!selProvider.CanSelectMultiple)
                {
                    Atk.Object selected = RefSelection(0);
                    if (selected != null)
                    {
                        propagateName = selected.Name;
                    }
                }
                RaiseSelectionChanged(propagateName);
            }

            // TODO: Report gail bug, and return 'success' instead
            return(true);
        }
コード例 #2
0
ファイル: List.cs プロジェクト: ABEMBARKA/monoUI
 public bool AddSelection(int i)
 {
     selectionHelper.AddSelection(i);
     //FIXME: currently unit-tests force this to always true, we may be interested in changing them when we report the gail bug about this (see ComboBox.cs)
     return(true);
 }
コード例 #3
0
 public virtual bool AddSelection(int i)
 {
     return(selectionHelper.AddSelection(i));
     //return ((ComboBoxItem)RefAccessibleChild (i)).DoAction (0);
 }
コード例 #4
0
 public bool AddSelection(int i)
 {
     /* bool success = */ selectionHelper.AddSelection(i);
     // TODO: Report gail bug, and return 'success' instead
     return(true);
 }
コード例 #5
0
 public bool AddSelection(int i)
 {
     return(selectionHelper.AddSelection(i));
 }