Dev2.Utils.HelperUtils.ShowTrustRelationshipError C# (CSharp) Method

ShowTrustRelationshipError() public static method

public static ShowTrustRelationshipError ( SystemException exception ) : void
exception System.SystemException
return void
        public static void ShowTrustRelationshipError(SystemException exception)
        {
            if(exception.Message.Contains("The trust relationship between this workstation and the primary domain failed"))
            {
                                var popup = CustomContainer.Get<IPopupController>();
                                popup.Header = "Error connecting to server";
                                popup.Description = "This computer cannot contact the Domain Controller."
                                                    + Environment.NewLine + "If it does not belong to a domain, please ensure it is removed from the domain in computer management.";
                                popup.Buttons = MessageBoxButton.OK;
                                popup.ImageType = MessageBoxImage.Error;
                                popup.Show();
            }
        }