public AddNormOfRawForm(GrainLevelOfQualityNorm newGrainLevelOfQualityNorm, string[] impurities, string newType, string newSubtype) { InitializeComponent(); controller = new AddNormOfRawController(); impComboBox.Items.AddRange(impurities); impComboBox.Text = impComboBox.Items[0].ToString(); grainLevelOfQualityNorm = newGrainLevelOfQualityNorm; type = newType; subtype = newSubtype; }
public AddNormOfRawForm(GrainLevelOfQualityNorm newGrainLevelOfQualityNorm, bool change) { InitializeComponent(); controller = new AddNormOfRawController(); this.Text = "Изменение зернового показателя качества"; impComboBox.Items.Add(newGrainLevelOfQualityNorm.TypeImp); impComboBox.Text = newGrainLevelOfQualityNorm.TypeImp; impComboBox.Enabled = false; textBoxNorm.Text = newGrainLevelOfQualityNorm.Norm; forChange = change; grainLevelOfQualityNorm = newGrainLevelOfQualityNorm; }
public AddNormOfGeneralLevelForm(GeneralLevelOfQualityNorm newGeneralLevelOfQualityNorm, bool change) { InitializeComponent(); controller = new AddNormOfRawController(); this.Text = "Изменение общего показателя качества"; impComboBox.Items.Add(newGeneralLevelOfQualityNorm.TypeImp); impComboBox.Text = newGeneralLevelOfQualityNorm.TypeImp; impComboBox.Enabled = false; textBoxNorm.Text = newGeneralLevelOfQualityNorm.Norm; if (newGeneralLevelOfQualityNorm.Isminimum) { radioButtonMin.Checked = true; } else { radioButtonMax.Checked = true; } generalLevelOfQualityNorm = newGeneralLevelOfQualityNorm; forChange = change; }