Smrf.NodeXL.ExcelTemplate.TaskPane.EditVertexAttributes C# (CSharp) Method

EditVertexAttributes() protected method

protected EditVertexAttributes ( ) : void
return void
    EditVertexAttributes()
    {
        AssertValid();

        if (oNodeXLControl.SelectedVertices.Count > 0)
        {
            VertexAttributesDialog oVertexAttributesDialog =
                new VertexAttributesDialog(oNodeXLControl);

            if (oVertexAttributesDialog.ShowDialog() == DialogResult.OK)
            {
                // Get the list of attributes that were applied to the selected
                // vertices.

                EditedVertexAttributes oEditedVertexAttributes =
                    oVertexAttributesDialog.EditedVertexAttributes;

                // Update the selected vertices in the workbook.

                FireAttributesEditedInGraph(null, oEditedVertexAttributes);

                if (oEditedVertexAttributes.WorkbookMustBeReread)
                {
                    ReadWorkbook();
                }
            }
        }
    }
TaskPane