Example #1
0
        private void RefreshItems(object sender, EventArgs e)
        {
            var biz = new VehicleBiz();

            dataGridView.DataSource = biz.LoadItems();
            dataGridView.Refresh();
        }
Example #2
0
        public VehicleView(User user)
        {
            InitializeComponent();

            dataGridView.AutoGenerateColumns = false;

            var biz = new VehicleBiz();
            dataGridView.DataSource = biz.LoadItems();
            dataGridView.Refresh();

            currentUser = user;
        }
Example #3
0
        private void LoadVehicle()
        {
            var biz   = new VehicleBiz();
            var items = biz.LoadItems();

            items.Insert(0, new Vehicle());

            drlVehicle.Items.Clear();
            drlVehicle.DataSource    = items;
            drlVehicle.DisplayMember = "Name";
            drlVehicle.ValueMember   = "Id";
        }
Example #4
0
        public VehicleView(User user)
        {
            InitializeComponent();

            dataGridView.AutoGenerateColumns = false;

            var biz = new VehicleBiz();

            dataGridView.DataSource = biz.LoadItems();
            dataGridView.Refresh();

            currentUser = user;
        }
Example #5
0
 private void RefreshItems(object sender, EventArgs e)
 {
     var biz = new VehicleBiz();
     dataGridView.DataSource = biz.LoadItems();
     dataGridView.Refresh();
 }
Example #6
0
        private void LoadVehicle()
        {
            var biz = new VehicleBiz();
            var items = biz.LoadItems();
            items.Insert(0, new Vehicle());

            drlVehicle.Items.Clear();
            drlVehicle.DataSource = items;
            drlVehicle.DisplayMember = "Name";
            drlVehicle.ValueMember = "Id";
        }