Smrf.NodeXL.ExcelTemplate.GroupByVertexAttributeDialog.btnOK_Click C# (CSharp) Method

btnOK_Click() private method

private btnOK_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
    btnOK_Click
    (
        object sender,
        EventArgs e
    )
    {
        AssertValid();

        if ( !DoDataExchange(true) )
        {
            return;
        }

        this.UseWaitCursor = true;

        try
        {
            GroupByVertexAttribute();

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
        catch (Exception oException)
        {
            ErrorUtil.OnException(oException);
        }
        finally
        {
            this.UseWaitCursor = false;
        }
    }