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();
 }
Example #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();
            }
        }
Example #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();
            }
        }
Example #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();
 }