public Commander() { cutBlock = null; left = new DirectoryContent(0, 0, (Console.WindowWidth - 5) / 2, Console.WindowHeight-2); left.setPath("D:\\"); right = new DirectoryContent((Console.WindowWidth - 5) / 2+3 , 0, Console.WindowWidth / 2, Console.WindowHeight-2); right.setPath("C:\\"); current = left; Console.CursorVisible = false; Window.parent = this; drawCommands(); current.active(); Console.SetCursorPosition(0, Console.WindowHeight - 1); work(); }
public Commander() { cutBlock = null; left = new DirectoryContent(0, 0, (Console.WindowWidth - 5) / 2, Console.WindowHeight - 2); left.setPath("D:\\"); right = new DirectoryContent((Console.WindowWidth - 5) / 2 + 3, 0, Console.WindowWidth / 2, Console.WindowHeight - 2); right.setPath("C:\\"); current = left; Console.CursorVisible = false; Window.parent = this; drawCommands(); current.active(); Console.SetCursorPosition(0, Console.WindowHeight - 1); work(); }