Esempio n. 1
0
        public CarAdd(ParentView parent_, int initImage_)
        {
            InitializeComponent();

            tableLayoutPanel1.Controls.Add(chooser, 1, 4);
            tableLayoutPanel1.SetColumnSpan(chooser, 2);

            parent             = parent_;
            chooser.imageIndex = initImage_;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 public CarView(ParentView parent_)
 {
     InitializeComponent();
     parent        = parent_;
     currentFilter = IdentityFilter.get();
 }