C# 클래스 ZSCY.Util.Utils

파일 보기 프로젝트 열기: RedrockMobile/CyxbsMobile_Win

공개 메소드들

메소드 설명
ConvertUnicodeStringToChinese ( string unicodeString ) : string

UNICODE字符转为中文

DownloadAndScale ( string outfileName, string downloadUriString, Size scaleSize ) : System.Threading.Tasks.Task

异步从网络下载图片

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

메소드 상세

ConvertUnicodeStringToChinese() 공개 정적인 메소드

UNICODE字符转为中文
public static ConvertUnicodeStringToChinese ( string unicodeString ) : string
unicodeString string
리턴 string

DownloadAndScale() 공개 정적인 메소드

异步从网络下载图片
public static DownloadAndScale ( string outfileName, string downloadUriString, Size scaleSize ) : System.Threading.Tasks.Task
outfileName string 下载保存到本地的图片文件名
downloadUriString string 图片uri
scaleSize Windows.Foundation.Size 图片尺寸
리턴 System.Threading.Tasks.Task

GetTime() 공개 정적인 메소드

时间戳转时间
public static GetTime ( string timeStamp ) : DateTime
timeStamp string Unix时间戳格式
리턴 DateTime

GetTimeStamp() 공개 정적인 메소드

时间转时间戳
public static GetTimeStamp ( DateTimeOffset date, TimeSpan time ) : string
date DateTimeOffset
time TimeSpan
리턴 string

GetWeek() 공개 정적인 메소드

获取星期
public static GetWeek ( int mode = 1 ) : string
mode int 默认1.返回数字,2.返回中文
리턴 string

Message() 공개 정적인 메소드

弹出对话框
public static Message ( string text, string title = "错误" ) : void
text string
title string
리턴 void

ReadJso() 공개 정적인 메소드

public static ReadJso ( string jsonstring, string sdata = "data" ) : Newtonsoft.Json.Linq.JArray
jsonstring string
sdata string
리턴 Newtonsoft.Json.Linq.JArray

ShowSystemTrayAsync() 공개 정적인 메소드

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

Toast() 공개 정적인 메소드

Toast
public static Toast ( string text ) : void
text string
리턴 void

getPhoneHeight() 공개 정적인 메소드

屏幕高度
public static getPhoneHeight ( ) : double
리턴 double

getPhoneWidth() 공개 정적인 메소드

屏幕宽度
public static getPhoneWidth ( ) : double
리턴 double