Ejemplo n.º 1
0
        public AddNewCar(Car carToUpdate_c, string carId_c, TabContent parent_c)
        {
            InitializeComponent();

            parent      = parent_c;
            carToUpdate = carToUpdate_c;
            carId       = carId_c;
        }
Ejemplo n.º 2
0
        public AddNewEmployee(TabContent parent_c)
        {
            InitializeComponent();

            passwordTextBox.UseSystemPasswordChar    = true;
            secPasswordTextBox.UseSystemPasswordChar = showPass;

            parent = parent_c;
        }
Ejemplo n.º 3
0
        public AddNewEmployee(Employee employee_c, Address address_c, string addressID_c, TabContent parent_c)
        {
            InitializeComponent();

            parent    = parent_c;
            addressID = addressID_c;
            employee  = employee_c;
            address   = address_c;

            Text = "Update Employee";
            submitButton.Text = "Update";
        }
Ejemplo n.º 4
0
        public AddNewATM(string id_c, int size_c, int capacity_c, string brand_c, string baseAddressId_c, TabContent parent_c, string atmId_c)
        {
            InitializeComponent();

            Address address_c = db.getAddressByID(baseAddressId_c);

            parent        = parent_c;
            baseAddressId = baseAddressId_c;
            atmId         = atmId_c;

            id          = id_c;
            atmSize     = size_c;
            capacity    = capacity_c;
            brand       = brand_c;
            street      = address_c.street;
            houseNumber = address_c.house_num.ToString();
            zipCode     = address_c.zip_code;
            city        = address_c.city;
            lat         = address_c.lat.ToString();
            lng         = address_c.lng.ToString();

            Text = "Update ATM";
            addNewATMButton.Text = "Update";
        }
Ejemplo n.º 5
0
        public AddNewCar(TabContent parent_c)
        {
            InitializeComponent();

            parent = parent_c;
        }