public CarAdd(ParentView parent_, int initImage_) { InitializeComponent(); tableLayoutPanel1.Controls.Add(chooser, 1, 4); tableLayoutPanel1.SetColumnSpan(chooser, 2); parent = parent_; chooser.imageIndex = initImage_; }
public CarEdit(ParentView parent_, Car editedCar_) { InitializeComponent(); tableLayoutPanel1.Controls.Add(chooser, 1, 4); tableLayoutPanel1.SetColumnSpan(chooser, 2); parent = parent_; IdTextBox.Text = editedCar_.ID.ToString(); BrandTextBox.Text = editedCar_.Brand; ProdYearTextBox.Text = editedCar_.ProdYear.ToString(); MaxVelocityTextBox.Text = editedCar_.MaxVelocity.ToString(); chooser.imageIndex = (int)editedCar_.Type; }
public CarView(ParentView parent_) { InitializeComponent(); parent = parent_; currentFilter = IdentityFilter.get(); }