Exemple #1
0
 private void ClearAllList(IChainList obj)
 {
     Console.WriteLine("Right now will be deleted all list");
     Console.ReadLine();
     obj.RemoveFrom();
     Rendering(obj);
 }
Exemple #2
0
        private void AddToList(IChainList obj)
        {
            Console.WriteLine("Enter lines to continue enter empty line");
            var inputString = "";

            do
            {
                inputString = Console.ReadLine();
                if (inputString != "")
                {
                    obj.AddLast(inputString);
                }
            } while (inputString != "");
            Rendering(obj);
        }
 public PendingActionFactory(IChainList chainList,
                                 ILoadableDictionary<IPlayer, IPendingAction> pendingPlayerActions)
 {
     this.ChainList = chainList;
     this.PlayerPendingActions = pendingPlayerActions;
 }
Exemple #4
0
 private void Rendering(IChainList obj)
 {
     Console.Clear();
     Console.WriteLine(obj.ToString());
 }
Exemple #5
0
 private void DeleteStringFromObjByValue(IChainList obj)
 {
     Console.WriteLine("Enter the line you want to delete");
     obj.Remove(Console.ReadLine());
     Rendering(obj);
 }
Exemple #6
0
 private void DeleteListStartingFrom(IChainList obj)
 {
     Console.WriteLine("Enter the line from which you want to clear the list");
     obj.RemoveFrom(Console.ReadLine());
     Rendering(obj);
 }
 public NewChainPendingAction(IChainList chainList,
     ILoadableDictionary<IPlayer, IPendingAction> playerPendingActions)
 {
     this.PlayerPendingActions = playerPendingActions;
     this.ChainList = chainList;
 }