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