private void OnClick(object sender, FocusManager.ClickEventArgs clickEventArgs) { if (null == clickEventArgs || null == clickEventArgs.Button) { return; } m_focusManager.SelectedButton = clickEventArgs.Button; if (clickEventArgs.Button == BtnPause) { } if (clickEventArgs.Button == Btn480) { m_resolution = "640x480"; } if (clickEventArgs.Button == Btn720) { m_resolution = "1280x720"; } if (clickEventArgs.Button == Btn1080) { m_resolution = "1920x1080"; } }
private void OnClick(object sender, FocusManager.ClickEventArgs clickEventArgs) { if (null == clickEventArgs || null == clickEventArgs.Button) { return; } _focusManager.SelectedButton = clickEventArgs.Button; if (clickEventArgs.Button == _btn480) { _resolution = "640x480"; _graphics.PreferredBackBufferWidth = 640; _graphics.PreferredBackBufferHeight = 480; Window.Holder.SetFixedSize(_graphics.PreferredBackBufferWidth, _graphics.PreferredBackBufferHeight); } if (clickEventArgs.Button == _btn720) { _resolution = "1280x720"; _graphics.PreferredBackBufferWidth = 1280; _graphics.PreferredBackBufferHeight = 720; Window.Holder.SetFixedSize(_graphics.PreferredBackBufferWidth, _graphics.PreferredBackBufferHeight); } if (clickEventArgs.Button == _btn1080) { _resolution = "1920x1080"; _graphics.PreferredBackBufferWidth = 1920; _graphics.PreferredBackBufferHeight = 1080; Window.Holder.SetFixedSize(_graphics.PreferredBackBufferWidth, _graphics.PreferredBackBufferHeight); } }