private void btnSelectData_Click(object sender, EventArgs e)
        {
            //show select data dialog
            string           Cookie = string.Empty;
            ISASTaskDataName opd    = this.Consumer.ShowOutputDataSelector(this, ServerAccessMode.AnyServer, lblServer.Text, lblLib.Text, lblDS.Text, ref Cookie);

            if (opd != null)
            {
                if (lblServer.Text != opd.Server)
                {
                    lblServer.Text = opd.Server;
                    FormatDialog   = null;
                    this.Consumer.AssignedServer = opd.Server;
                }
                lblLib.Text             = opd.Library;
                lblDS.Text              = opd.Member;
                Settings.outputDataName = opd.Member;
                Settings.outputLibrary  = opd.Library;
            }
        }
 private void EditSelectedColumnProperties()
 {
     if (lvColumns.SelectedItems.Count > 0)
     {
         //Show ColProps Dialog
         SPColumn col = lvColumns.SelectedItems[0].Tag as SPColumn;
         if (col != null)
         {
             SPColumnProperties props = new SPColumnProperties(col, Consumer);
             try
             {
                 Cursor = Cursors.WaitCursor;
                 if (FormatDialog == null || FormatDialog.SASWorkspace == null)
                 {
                     if (FormatDialog == null)
                     {
                         FormatDialog = new SAS.SharedUI.FormatsDialog();
                     }
                     FormatDialog.SASWorkspace = (SAS.IWorkspace)Consumer.Workspace(Consumer.AssignedServer);
                 }
                 props.FormatDialog = FormatDialog;
             }
             finally
             { Cursor = Cursors.Default; }
             if (DialogResult.OK == props.ShowDialog(this))
             {
                 col.SASName     = props.SASName;
                 col.SASType     = props.SASType;
                 col.SASFormat   = props.SASFormat;
                 col.SASInFormat = props.SASInFormat;
                 UpdateColInfo();
                 UpdateColButtons();
             }
         }
     }
 }
 private void EditSelectedColumnProperties()
 {
     if (lvColumns.SelectedItems.Count > 0)
     {
         //Show ColProps Dialog
         SPColumn col = lvColumns.SelectedItems[0].Tag as SPColumn;
         if (col != null)
         {
             SPColumnProperties props = new SPColumnProperties(col, Consumer);
             try
             {
                 Cursor = Cursors.WaitCursor;
                 if (FormatDialog == null || FormatDialog.SASWorkspace == null)
                 {
                     if (FormatDialog == null)
                         FormatDialog = new SAS.SharedUI.FormatsDialog();
                     FormatDialog.SASWorkspace = (SAS.IWorkspace)Consumer.Workspace(Consumer.AssignedServer);
                 }
                 props.FormatDialog = FormatDialog;
             }
             finally
             { Cursor = Cursors.Default; }
             if (DialogResult.OK == props.ShowDialog(this))
             {
                 col.SASName = props.SASName;
                 col.SASType = props.SASType;
                 col.SASFormat = props.SASFormat;
                 col.SASInFormat = props.SASInFormat;
                 UpdateColInfo();
                 UpdateColButtons();
             }
         }
     }
 }
 private void btnSelectData_Click(object sender, EventArgs e)
 {
     //show select data dialog
     string Cookie = string.Empty;
     ISASTaskDataName opd = this.Consumer.ShowOutputDataSelector(this, ServerAccessMode.AnyServer, lblServer.Text, lblLib.Text, lblDS.Text, ref Cookie);
     if (opd != null)
     {
         if (lblServer.Text != opd.Server)
         {
             lblServer.Text = opd.Server;
             FormatDialog = null;
             this.Consumer.AssignedServer = opd.Server;  
         }
         lblLib.Text = opd.Library;
         lblDS.Text = opd.Member;
         Settings.outputDataName = opd.Member;
         Settings.outputLibrary = opd.Library;
     }
 }