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(); } } } }