Exemple #1
0
        public void ReinitializeControl()
        {
            try
            {
                model.Initialize();
                viewModel.Initialize();
            }
            catch (Exception e)
            {
                if (ThreadHelper.CheckAccess())
                {
#pragma warning disable VSTHRD010 // Invoke single-threaded types on Main thread
                    IVsActivityLog log = Package.GetGlobalService(typeof(SVsActivityLog)) as IVsActivityLog;
                    log.LogEntry((uint)__ACTIVITYLOG_ENTRYTYPE.ALE_ERROR, this.ToString(),
                                 "An error occurred while loading the sdk page: " + e.Message);
#pragma warning restore VSTHRD010 // Invoke single-threaded types on Main thread
                }
            }
        }