public AddColumn(SPList list, ImportFromSharePointListTaskSettings settings)
        {
            if (list == null)
                throw new ArgumentNullException("list");
            if (settings == null)
                throw new ArgumentNullException("settings");

            InitializeComponent();
            _list = list;
            _settings = settings;
        }
 /// <summary>
 /// Show the task user interface
 /// </summary>
 /// <param name="Owner"></param>
 /// <returns>whether to cancel the task, or run now</returns>
 public override ShowResult Show(System.Windows.Forms.IWin32Window Owner)
 {
     ImportFromSharePointListTaskForm dlg = new ImportFromSharePointListTaskForm(this.Consumer);
     dlg.Settings = settings;
     if (System.Windows.Forms.DialogResult.OK == dlg.ShowDialog(Owner))
     {
         // gather settings values from the dialog
         settings = dlg.Settings;
         return ShowResult.RunNow;
     }
     else
         return ShowResult.Canceled;
 }
 public override void RestoreStateFromXml(string xmlState)
 {
     settings = new ImportFromSharePointListTaskSettings();
     settings.FromXml(xmlState);
 }
 public override bool Initialize()
 {
     settings = new ImportFromSharePointListTaskSettings();
     return true;
 }