| | |
| | | return Application.GetRealWidth(i_size);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 获取图片里面,子控件文本的高度
|
| | | /// </summary>
|
| | | /// <param name="i_height">高度</param>
|
| | | /// <returns></returns>
|
| | | public int GetPicChidrenTextHeight(int i_height)
|
| | | {
|
| | | int value1 = Application.GetRealHeight(i_height);
|
| | | int value2 = Application.GetRealWidth(i_height);
|
| | | //当宽度比率大于高度时,用宽度
|
| | | if (value2 > value1)
|
| | | {
|
| | | return value2;
|
| | | }
|
| | | //否则,考虑到显示完全的问题,需要使用高度比率
|
| | | return value1;
|
| | | }
|
| | |
|
| | | #endregion |
| | |
|
| | | #region ■ 反射方法___________________________ |
| | |
| | | return myMethod.Invoke(form, parameter);
|
| | | } |
| | | catch (Exception ex) |
| | | {
|
| | | //出现未知错误,数据丢失
|
| | | HdlMessageLogic.Current.ShowAppProgramIsError(ex);
|
| | | { |
| | | #if DEBUG
|
| | | //出现未知错误,数据丢失 |
| | | HdlMessageLogic.Current.ShowAppProgramIsError(ex); |
| | | #endif
|
| | | return null;
|
| | | } |
| | | } |