public AddStorageForm(string newIdRaw, string newRaw, string newType, string newSubtype, string newClassRaw, double newWeight) { InitializeComponent(); controller = new AddStorageController(); comboBoxStorage.Text = comboBoxStorage.Items[0].ToString(); idRaw = newIdRaw; raw = newRaw; type = newType; subtype = newSubtype; classRaw = newClassRaw; weight = newWeight; }
public AddStorageForm(SilageStoragePlace newSilage, string newRaw, string newType, string newSubtype, string newClassRaw, double newWeight) { InitializeComponent(); controller = new AddStorageController(); comboBoxStorage.Text = comboBoxStorage.Items[1].ToString(); silage = newSilage; comboBoxNumber.Text = silage.Number; number = silage.Number; textBoxWeight.Text = silage.Weight; comboBoxStorage.Enabled = false; raw = newRaw; type = newType; subtype = newSubtype; classRaw = newClassRaw; weight = newWeight; }