예제 #1
0
 public ChatBox()
 {
     InitializeComponent();
     SendError = (data, ip, length, ex) =>
     {
         SetHTML("<div class='ERROR'>" + MiMFa_LanguageReader.GetText("↨" + ex.Message) + "</div>");
     };
 }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
 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"));
     }
 }
예제 #6
0
        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);
            }
        }