Runt.DesignTimeHost.Host.OnError C# (CSharp) Method

OnError() private method

private OnError ( HostErrorEventArgs e ) : void
e HostErrorEventArgs
return void
        private void OnError(HostErrorEventArgs e)
        {
            var er = Error;
            if (er != null)
                er(this, e);

            // restart host
            _host.Dispose();
            Start();
        }