void HiLightLine() { APartBase = LeftPart; APartBase.HightlightCursor(ConsoleMatrix); APartBase = RightPart; APartBase.HightlightCursor(ConsoleMatrix); }
void FillTheConsole() { APartBase = LeftPart; APartBase.FillThePart(ConsoleMatrix); APartBase = RightPart; APartBase.FillThePart(ConsoleMatrix); }
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; } }
void ShowAllPath() { APartBase = ActivePart(); Console.WriteLine(APartBase.CurrentSelectedFile); }