protected override void OnHandleCreated(EventArgs e)
        {
            base.OnHandleCreated(e);
            if (string.IsNullOrEmpty(SiteUrl))
            {
                return;
            }

            if (settings != null)
            {
                chkAppLists.Checked = settings.ShowApplicationLists;
                chkHidden.Checked   = settings.ShowHiddenLists;
                chkGallery.Checked  = settings.ShowGalleryLists;
            }
            tsLabel.Text = string.Format(tsLabel.Text, SiteUrl);
            UpdateControlsState(false);
            if (SelectedList != null)
            {
                IList <SPColumn> codeCols = SelectedList.GetColumnsForCode();
                if (codeCols != null && codeCols.Count > 0)
                {
                    originalColumns = new List <SPColumn>(codeCols.Count);
                    foreach (SPColumn col in codeCols)
                    {
                        originalColumns.Add(SPColumn.Clone(col));
                    }
                }
            }
            System.Threading.ThreadStart starter = new System.Threading.ThreadStart(RetrieveLists);
            _listThread = new System.Threading.Thread(starter);
            _listThread.SetApartmentState(System.Threading.ApartmentState.STA);
            _listThread.IsBackground = true;
            _listThread.Start();
            this.Cursor = Cursors.WaitCursor;
        }
 private void UpdateColInfo()
 {
     lvColumns.Items.Clear();
     if (_selList != null)
     {
         IList <SPColumn> selColumns = _selList.GetColumnsForCode();
         foreach (SPColumn curCol in selColumns)
         {
             ListViewItem lvi = new ListViewItem();
             lvi.Text = curCol.Title;
             lvi.SubItems.AddRange(new string[] { curCol.SASName, curCol.SASType, curCol.SASFormat });
             lvi.Tag = curCol;
             lvColumns.Items.Add(lvi);
         }
     }
 }