public ChatBox() { InitializeComponent(); SendError = (data, ip, length, ex) => { SetHTML("<div class='ERROR'>" + MiMFa_LanguageReader.GetText("↨" + ex.Message) + "</div>"); }; }
public string Text(params string[] keys) { string message = MiMFa_LanguageReader.GetText(MiMFa_MessageType.Text, keys); ForeColor = TextForeColor; BackColor = TextBackColor; Image = TextImage; MessageType = MiMFa_MessageType.Text; Start(message, -1); return(Message); }
public string Error(params string[] keys) { string message = MiMFa_LanguageReader.GetText(MiMFa_MessageType.Error, keys); ForeColor = ErrorForeColor; BackColor = ErrorBackColor; Image = ErrorImage; MessageType = MiMFa_MessageType.Error; Start(message, -1); return(Message); }
public string Success(params string[] keys) { string message = MiMFa_LanguageReader.GetText(MiMFa_MessageType.Success, keys); ForeColor = SuccessForeColor; BackColor = SuccessBackColor; Image = SuccessImage; MessageType = MiMFa_MessageType.Success; Start(message, -1); return(Message); }
private void Wc_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e) { if (e.Cancelled) { MCL.SetToResultDic(-99, e.Error.Message); } else { MCL.SetToResultDic(-90, MiMFa_LanguageReader.GetText("Download Completed")); } }
public string Get(MiMFa_MessageType messageType, int lenghtTime, params string[] keys) { string message = MiMFa_LanguageReader.GetText(messageType, keys); switch (messageType) { case MiMFa_MessageType.Success: return(Success(message, lenghtTime)); case MiMFa_MessageType.Alert: return(Alert(message, lenghtTime)); case MiMFa_MessageType.Error: return(Error(message, lenghtTime)); case MiMFa_MessageType.Text: return(Text(message, lenghtTime)); default: return(message); } }