Exemplo n.º 1
0
        public void Copy()
        {
            Console.Clear();
            string str = string.Format("You are about to copy file {0}\n Please, select the destination pass and pree \"Enter\"\n", selected.Name);

            explorer.ShowExplorerForImplementation(Items, this, str);
        }
Exemplo n.º 2
0
        public void Move()
        {
            Console.Clear();
            string str = "";

            switch (kind)
            {
            case Kind.MOVE:
                str = string.Format("You are about to MOVE file {0}\n Please, select the destination pass\n", selected.Name);
                break;

            case Kind.DELETE:
                Console.WriteLine("You are about to DELETE file {0}\n", selected.Name);
                Console.WriteLine("Do you want to conyinue Y/N ");
                if (Console.ReadLine() == "Y")
                {
                    int index = Items.FindIndex(x => x.Name == UIExplorerCreator.NameBasket);
                    if (index >= 0)
                    {
                        Execute(Items[index]);
                    }
                }
                return;
            }
            explorer.ShowExplorerForImplementation(Items, this, str);
        }