Smrf.NodeXL.ExcelTemplate.ColorColumnAutoFillUserSettingsDialog.btnSwapDestinationColors_Click C# (CSharp) Method

btnSwapDestinationColors_Click() private method

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

        Color oTempColor = usrDestinationColor1.Color;

        usrDestinationColor1.Color = usrDestinationColor2.Color;
        usrDestinationColor2.Color = oTempColor;
        UpdateColorGradient();
    }