public void SortMaster(Client nextMaster) { if (!HasClient(nextMaster)) { return; } var index = ClientList.IndexOf(nextMaster); ClientList.RemoveAt(index); var oldMaster = ClientList[0]; ClientList.RemoveAt(0); ClientList.Insert(0, nextMaster); ClientList.Insert(index, oldMaster); }