private void ShowError(string error)
 {
     ShowErrorHelper helper =
         new ShowErrorHelper(BlogClientUIContext.ContextForCurrentThread, MessageId.UnexpectedErrorLogin,
                             new object[] { error });
     if (BlogClientUIContext.ContextForCurrentThread != null)
         BlogClientUIContext.ContextForCurrentThread.Invoke(new ThreadStart(helper.Show), null);
     else
         helper.Show();
 }
Esempio n. 2
0
        private void ShowError(MessageId messageId, params object[] args)
        {
            ShowErrorHelper helper = new ShowErrorHelper(BlogClientUIContext.ContextForCurrentThread, messageId, args);

            if (BlogClientUIContext.ContextForCurrentThread != null)
            {
                BlogClientUIContext.ContextForCurrentThread.Invoke(new ThreadStart(helper.Show), null);
            }
            else
            {
                helper.Show();
            }
        }
Esempio n. 3
0
        private void ShowError(string error)
        {
            ShowErrorHelper helper =
                new ShowErrorHelper(BlogClientUIContext.ContextForCurrentThread, MessageId.UnexpectedErrorLogin,
                                    new object[] { error });

            if (BlogClientUIContext.ContextForCurrentThread != null)
            {
                BlogClientUIContext.ContextForCurrentThread.Invoke(new ThreadStart(helper.Show), null);
            }
            else
            {
                helper.Show();
            }
        }
Esempio n. 4
0
 private void ShowError(MessageId messageId, params object[] args)
 {
     ShowErrorHelper helper = new ShowErrorHelper(BlogClientUIContext.ContextForCurrentThread, messageId, args);
     if (BlogClientUIContext.ContextForCurrentThread != null)
         BlogClientUIContext.ContextForCurrentThread.Invoke(new ThreadStart(helper.Show), null);
     else
         helper.Show();
 }