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

msiGridSize_Click() protected method

protected msiGridSize_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
    msiGridSize_Click
    (
        object sender,
        EventArgs e
    )
    {
        AssertValid();

        if (oNodeXLControl.IsLayingOutGraph)
        {
            return;
        }

        VertexGridSnapperUserSettings oVertexGridSnapperUserSettings =
            new VertexGridSnapperUserSettings();

        VertexGridSnapperUserSettingsDialog
            oVertexGridSnapperUserSettingsDialog =
                new VertexGridSnapperUserSettingsDialog(
                    oVertexGridSnapperUserSettings);

        if (oVertexGridSnapperUserSettingsDialog.ShowDialog() ==
            DialogResult.OK)
        {
            oVertexGridSnapperUserSettings.Save();
        }
    }
TaskPane