コード例 #1
0
 void HiLightLine()
 {
     APartBase = LeftPart;
     APartBase.HightlightCursor(ConsoleMatrix);
     APartBase = RightPart;
     APartBase.HightlightCursor(ConsoleMatrix);
 }
コード例 #2
0
 void FillTheConsole()
 {
     APartBase = LeftPart;
     APartBase.FillThePart(ConsoleMatrix);
     APartBase = RightPart;
     APartBase.FillThePart(ConsoleMatrix);
 }
コード例 #3
0
        public void ParseKeys(ConsoleKey key)
        {
            switch (key)
            {
            case ConsoleKey.Tab:
                APartBase = LeftPart;
                APartBase.ChangePart();
                APartBase = RightPart;
                APartBase.ChangePart();
                break;

            case ConsoleKey.Enter:
                APartBase = ActivePart();
                APartBase.ChangeDirectory();
                break;

            case ConsoleKey.UpArrow:
                APartBase = ActivePart();
                APartBase.ChangeHighlightUp();
                break;

            case ConsoleKey.DownArrow:
                APartBase = ActivePart();
                APartBase.ChangeHighlightDown();
                break;

            case ConsoleKey.F6:
                APartBase = ActivePart();
                Commands.CopyTo(APartBase.path, APartBase.CurrentSelectedFile, OppositePart().path);
                OppositePart().UpdatePart();
                break;

            case ConsoleKey.F5:
                APartBase = ActivePart();
                Commands.MoveTo(APartBase.path, APartBase.CurrentSelectedFile, OppositePart().path);
                OppositePart().UpdatePart();
                break;

            case ConsoleKey.Delete:
                APartBase = ActivePart();
                Commands.Del(APartBase.CurrentSelectedFile);
                ActivePart().UpdatePart();
                break;

            case ConsoleKey.F3:
                Console.Clear();
                if (File.GetAttributes(ActivePart().CurrentSelectedFile) != FileAttributes.Directory)
                {
                    FileReader FR = new FileReader(ActivePart().CurrentSelectedFile);
                    FR.run();
                }

                break;

            default:
                break;
            }
        }
コード例 #4
0
 void ShowAllPath()
 {
     APartBase = ActivePart();
     Console.WriteLine(APartBase.CurrentSelectedFile);
 }