Esempio n. 1
0
        /// <summary>
        /// Unselects the specified row.
        /// </summary>
        /// <param name="row">Row to unselect.</param>
        public void UnselectRow(ListBoxRow row)
        {
            row.IsSelected = false;
            m_SelectedRows.Remove(row);

            if (RowUnselected != null)
            {
                RowUnselected.Invoke(this, new ItemSelectedEventArgs(row));
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Deselects all rows.
 /// </summary>
 public virtual void UnselectAll()
 {
     foreach (ListBoxRow row in m_SelectedRows)
     {
         row.IsSelected = false;
         if (RowUnselected != null)
         {
             RowUnselected.Invoke(this, new ItemSelectedEventArgs(row));
         }
     }
     m_SelectedRows.Clear();
 }