AsterixDisplayAnalyser.DisplayAttibutePicker.SyncFormData C# (CSharp) Метод

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

private SyncFormData ( ) : void
Результат void
        private void SyncFormData()
        {
            // First get all the display attributes for the selected data item
            DisplayAttributes.DisplayAttributesType DisplayAttribute =
                DisplayAttributes.GetDisplayAttribute((DisplayAttributes.DisplayItemsType)Enum.Parse(typeof(DisplayAttributes.DisplayItemsType),
                this.comboBoxDataItem.Text, true));

            /////////////////////////////////////////////////////////////
            // TEXT ATTRIBUTES
            /////////////////////////////////////////////////////////////

            // Text Attributes Color
            this.comboBoxTextColorChoice.SelectedIndex =
                this.comboBoxTextColorChoice.FindStringExact(DisplayAttribute.TextColor.Name);

            // Text Attributes Font
            this.comboBoxTextFontChoice.SelectedIndex =
                 this.comboBoxTextFontChoice.FindStringExact(DisplayAttribute.TextFont.Name);

            // Text Attributes Size
            this.comboBoxTextSizeChoice.SelectedIndex = DisplayAttribute.TextSize - 1;

            /////////////////////////////////////////////////////////////
            // LINE ATTRIBUTES
            /////////////////////////////////////////////////////////////

            // Line Attributes Color
            this.comboBoxLineColorChoice.SelectedIndex = this.comboBoxLineColorChoice.FindStringExact(DisplayAttribute.LineColor.Name);

            // Line Attributes Type

            this.comboBoxLineStyleChoice.SelectedIndex = this.comboBoxLineStyleChoice.FindStringExact(DisplayAttribute.LineStyle.ToString());

            // Line Attributes Size.
            this.comboBoxLineWidth.SelectedIndex = DisplayAttribute.LineWidth - 1;

            /////////////////////////////////////////////////////////////
            // AREA/POLYGON ATTRIBUTES
            /////////////////////////////////////////////////////////////
            this.comboBoxAreaPolygonColorChoice.SelectedIndex =
               this.comboBoxAreaPolygonColorChoice.FindStringExact(DisplayAttribute.AreaPolygonColor.Name);

            /////////////////////////////////////////////////////////////
            // IMAGE ATTRIBUTES
            /////////////////////////////////////////////////////////////
            this.numericUpDown_X.Value = DisplayAttribute.ImageSize.Width;
            this.numericUpDown_Y.Value = DisplayAttribute.ImageSize.Height;
            this.pictureBox.BackColor = Color.FromName(this.comboBoxBackgroundColor.Text);

            UpdateSampleLine();
            UpdateSampleText();
            UpdateAreaPolygonSample();
            UpdatePictureSample();
        }