public FormForDescriptorInfo(cDescriptorsType CurrentDesc) { this.CurrentDesc = CurrentDesc; InitializeComponent(); this.textBoxNameDescriptor.Text = CurrentDesc.GetName(); this.labelDataType.Text = CurrentDesc.GetDataType(); }
public FormForDescriptorInfo(cDescriptorsType CurrentDesc) { this.CurrentDesc = CurrentDesc; InitializeComponent(); this.textBoxNameDescriptor.Text = CurrentDesc.GetName(); if (CurrentDesc.DataType == eDataType.SINGLE) { this.numericUpDownBinValue.Visible = false; this.labelDataType.Text = "Single"; } else { this.labelDataType.Text = "Histogram"; } this.numericUpDownBinValue.Value = CurrentDesc.GetBinNumber(); this.OriginalBinNumber = CurrentDesc.GetBinNumber(); if (CurrentDesc.IsConnectedToDatabase) { this.labelDataBaseConnection.Text = "DataBase Connection."; panelForColor.BackColor = Color.LightGreen; } else { this.labelDataBaseConnection.Text = "No DataBase connection."; panelForColor.BackColor = Color.Red; } }