AlgorithmicColorRamp.frmAlgorithmicColorRamp.SetupControls C# (CSharp) Метод

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

private SetupControls ( ) : void
Результат void
		private void SetupControls()
		{
			LabelsIndex[0] = Label1;
			LabelsIndex[1] = Label2;
			LabelsIndex[2] = Label3;
			LabelsIndex[3] = Label4;
			LabelsIndex[4] = Label5;
			LabelsIndex[5] = Label6;
			LabelsIndex[6] = Label7;
			LabelsIndex[7] = Label8;
			LabelsIndex[8] = Label9;
			LabelsIndex[9] = Label10;

			TextBoxColors[0] = TextBox1;
			TextBoxColors[1] = TextBox2;
			TextBoxColors[2] = TextBox3;
			TextBoxColors[3] = TextBox4;
			TextBoxColors[4] = TextBox5;
			TextBoxColors[5] = TextBox6;
			TextBoxColors[6] = TextBox7;
			TextBoxColors[7] = TextBox8;
			TextBoxColors[8] = TextBox9;
			TextBoxColors[9] = TextBox10;

			HideColors();

			txtStartColor.Text = "";
			txtEndColor.Text = "";
			txtStartColor.BackColor = System.Drawing.ColorTranslator.FromOle(0XFF);
			txtEndColor.BackColor = System.Drawing.ColorTranslator.FromOle(0XFF);
			//MsgBox("Before ", MsgBoxStyle.Information, "SetupControls ")

			Buttons[0] = Button1;
			Buttons[1] = Button2;

			//MsgBox("After  ", MsgBoxStyle.Information, "SetupControls")

			cmbAlgorithm.Items.Clear();
			cmbAlgorithm.Items.Insert(0, "0 - esriHSVAlgorithm");
			cmbAlgorithm.Items.Insert(1, "1 - esriCIELabAlgorithm");
			cmbAlgorithm.Items.Insert(2, "2 - esriLabLChAlgorithm");
			cmbAlgorithm.SelectedIndex = 0;

			cmdOK.Enabled = false;
			chkShowColors.CheckState = System.Windows.Forms.CheckState.Unchecked;

			UpdateRamp();
			chkShowColors_CheckStateChanged(chkShowColors, new System.EventArgs());
		}