public override bool Equals(object obj)
        {
            bool result;

            if (obj == null)
            {
                result = false;
            }
            else
            {
                GraphicsResolution graphicsResolution = obj as GraphicsResolution;
                result = (graphicsResolution != null && this.Width == graphicsResolution.Width && this.Height == graphicsResolution.Height);
            }
            return(result);
        }
        public int CompareTo(object obj)
        {
            GraphicsResolution graphicsResolution = obj as GraphicsResolution;
            int result;

            if (graphicsResolution == null)
            {
                result = 1;
            }
            else
            {
                if (this.Width < graphicsResolution.Width)
                {
                    result = -1;
                }
                else
                {
                    if (this.Width > graphicsResolution.Width)
                    {
                        result = 1;
                    }
                    else
                    {
                        if (this.Height < graphicsResolution.Height)
                        {
                            result = -1;
                        }
                        else
                        {
                            if (this.Height > graphicsResolution.Height)
                            {
                                result = 1;
                            }
                            else
                            {
                                result = 0;
                            }
                        }
                    }
                }
            }
            return(result);
        }