Exemplo n.º 1
0
        private Coord GetLargestWindowSize()
        {
            if (disposed)
            {
                throw new ObjectDisposedException(this.ToString());
            }
            Coord size = WinCon.GetLargestConsoleWindowSize(_handle);

            if (size.X == 0 && size.Y == 0)
            {
                throw new ApplicationException("Error getting largest window size");
            }
            return(size);
        }