/// <summary> /// Gets ideal width of script selector button. /// </summary> private int getSimpTradWidth() { int w = btnSimpTrad.GetPreferredWidth(false, "m" + Magic.SearchSimp); w = Math.Max(w, btnSimpTrad.GetPreferredWidth(false, "m" + Magic.SearchTrad)); w = Math.Max(w, btnSimpTrad.GetPreferredWidth(false, "m" + Magic.SearchBoth)); return(w); }
/// <summary> /// Gets ideal width of search language selector button. /// </summary> private int getSearchLangWidth() { int w = btnSearchLang.GetPreferredWidth(false, "m" + Magic.SearchLangEng); return(w); }