コード例 #1
0
ファイル: AddStorageForm.cs プロジェクト: mnastya51/Elevator
 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;
 }
コード例 #2
0
ファイル: AddStorageForm.cs プロジェクト: mnastya51/Elevator
 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;
 }