Метод | Описание | |
---|---|---|
ConvertUnicodeStringToChinese ( string unicodeString ) : string |
UNICODE字符转为中文
|
|
DownloadAndScale ( string outfileName, string downloadUriString, |
异步从网络下载图片
|
|
GetTime ( string timeStamp ) : DateTime |
时间戳转时间
|
|
GetTimeStamp ( DateTimeOffset date, TimeSpan time ) : string |
时间转时间戳
|
|
GetWeek ( int mode = 1 ) : string |
获取星期
|
|
Message ( string text, string title = "错误" ) : void |
弹出对话框
|
|
ReadJso ( string jsonstring, string sdata = "data" ) : Newtonsoft.Json.Linq.JArray | ||
ShowSystemTrayAsync ( Color backgroundColor, Color foregroundColor, double opacity = 1, string text = "", bool isIndeterminate = false ) : System.Threading.Tasks.Task | ||
Toast ( string text ) : void |
Toast
|
|
getPhoneHeight ( ) : double |
屏幕高度
|
|
getPhoneWidth ( ) : double |
屏幕宽度
|
Метод | Описание | |
---|---|---|
ConverUnicodeStringToChar ( string str ) : char |
public static ConvertUnicodeStringToChinese ( string unicodeString ) : string | ||
unicodeString | string | |
Результат | string |
public static DownloadAndScale ( string outfileName, string downloadUriString, |
||
outfileName | string | 下载保存到本地的图片文件名 |
downloadUriString | string | 图片uri |
scaleSize | 图片尺寸 | |
Результат | System.Threading.Tasks.Task |
public static GetTime ( string timeStamp ) : DateTime | ||
timeStamp | string | Unix时间戳格式 |
Результат | DateTime |
public static GetTimeStamp ( DateTimeOffset date, TimeSpan time ) : string | ||
date | DateTimeOffset | |
time | TimeSpan | |
Результат | string |
public static GetWeek ( int mode = 1 ) : string | ||
mode | int | 默认1.返回数字,2.返回中文 |
Результат | string |
public static Message ( string text, string title = "错误" ) : void | ||
text | string | |
title | string | |
Результат | void |
public static ReadJso ( string jsonstring, string sdata = "data" ) : Newtonsoft.Json.Linq.JArray | ||
jsonstring | string | |
sdata | string | |
Результат | Newtonsoft.Json.Linq.JArray |
public static ShowSystemTrayAsync ( Color backgroundColor, Color foregroundColor, double opacity = 1, string text = "", bool isIndeterminate = false ) : System.Threading.Tasks.Task | ||
backgroundColor | Color | |
foregroundColor | Color | |
opacity | double | |
text | string | |
isIndeterminate | bool | |
Результат | System.Threading.Tasks.Task |
public static Toast ( string text ) : void | ||
text | string | |
Результат | void |
public static getPhoneHeight ( ) : double | ||
Результат | double |
public static getPhoneWidth ( ) : double | ||
Результат | double |