Ejemplo n.º 1
0
        // Initial setup and grey-out logic.
        public MainWindow()
        {
            this.InitializeComponent();


            // Insert code required on object creation below this point.
            // Insert Grey out logic here and afterwards.
            textbox_bus_address.IsEnabled = false;
            textbox_bus_phone.IsEnabled   = false;
            textbox_bus_seno.IsEnabled    = false;
            textbox_bus_fax.IsEnabled     = false;
            textbox_bus_contact.IsEnabled = false;
            textbox_bus_company.IsEnabled = false;
            this.mycardealer.CustomerList = mycardealer.LoadCustomers();
            this.mycardealer.VehicleList  = mycardealer.LoadVehicles();

            this.comboBox_del_customer.ItemsSource    = this.mycardealer.CustomerList;
            this.comboBox_Del_Vehicle.ItemsSource     = this.mycardealer.VehicleList;
            this.select_combobox_customer.ItemsSource = this.mycardealer.CustomerList;
        }