CSReportEditor.fProperties.picColor C# (CSharp) Метод

picColor() приватный Метод

private picColor ( TextBox txColor, Label shColor ) : void
txColor TextBox
shColor Label
Результат void
        private void picColor(TextBox txColor, Label shColor)
        {
            // Show the color dialog.
            DialogResult result = colorDialog.ShowDialog();
            // See if user pressed ok.
            if (result == DialogResult.OK)
            {
                // Set form background to the selected color.
                txColor.Text = colorDialog.Color.ToArgb().ToString();
                shColor.BackColor = colorDialog.Color;
            }
        }
fProperties