Exemplo n.º 1
0
        private void ServerSelectionChanged(object sender, EventArgs e)
        {
            removeSelectedServer.Enabled = serverList.IndexRemovable(
                SelectionCombo.SelectedIndex);

            ServerSelectionItem item = serverList[SelectionCombo.SelectedIndex];

            if (item != null)
            {
                serverList.Promote(SelectionCombo.SelectedIndex);
                UpdateServerSource(item.GetSource());
            }
        }
 public void IndexRemovableReturnsFalseWhenIndexIsLessThanTwo()
 {
     Assert.IsFalse(list.IndexRemovable(1));
 }