StringBuilder GetRecommendedAspectRatio(int adapterIndex) { MyAspectRatioEx recommendedAspectRatio = MyAspectRatioExList.Get(MyAspectRatioExList.GetWindowsDesktopClosestAspectRatio(adapterIndex)); StringBuilder sb = new StringBuilder(); sb.AppendFormat(MyTextsWrapper.Get(MyTextsWrapperEnum.RecommendedAspectRatio).ToString(), MyTextsWrapper.Get(recommendedAspectRatio.TextShort)); return(sb); }
void AddDisplayModesToComboBox(int adapterIndex) { m_videoModeCombobox.ClearItems(); int counter = 0; foreach (MyVideoModeEx videoMode in MyVideoModeManager.GetAllSupportedVideoModes(adapterIndex)) { m_videoModeCombobox.AddItem(counter++, new StringBuilder( videoMode.Width + " × " + videoMode.Height + string.Format(videoMode.IsRecommended ? " – {0} ***" : " – {0}", MyTextsWrapper.Get(MyAspectRatioExList.Get(videoMode.AspectRatioEnum).TextShort)) )); } }