Esempio n. 1
0
 public AddAnalysQualityRawForm(GrainLevelOfQuality newGrainLevelOfQuality, string[] impurities)
 {
     InitializeComponent();
     controller = new AddAnalysQualityRawController();
     impurityComboBox.Items.AddRange(impurities);
     impurityComboBox.Text = impurityComboBox.Items[0].ToString();
     grainLevelOfQuality   = newGrainLevelOfQuality;
 }
Esempio n. 2
0
 public AddAnalysQualityRawForm(WeedLevelOfQuality newWeedLevelOfQuality, bool change)
 {
     InitializeComponent();
     controller = new AddAnalysQualityRawController();
     this.Text  = "Изменение сорного показателя качества";
     impurityComboBox.Items.Add(newWeedLevelOfQuality.LevelQuality);
     impurityComboBox.Text    = newWeedLevelOfQuality.LevelQuality;
     impurityComboBox.Enabled = false;
     valueTextBox.Text        = newWeedLevelOfQuality.Value;
     forChange          = change;
     weedLevelOfQuality = newWeedLevelOfQuality;
 }