示例#1
0
        public ClientSearch()
        {
            InitializeComponent();

            clientServices = new ClientsServices();

            btnClientSearch_select.Enabled = false;
            comboBox1.Items.Add("client id");
            comboBox1.Items.Add("nom");
            comboBox1.Items.Add("prenom");
            comboBox1.Items.Add("courriel");
            comboBox1.Items.Add("telephone");
            comboBox1.SelectedIndex = 0;
        }
示例#2
0
        public MainForm()
        {
            InitializeComponent();

            vehiculeServices = new VehiculeServices();
            clientServices = new ClientsServices();

            LoginForm form1 = new LoginForm();
            form1.Owner = this;
            form1.ShowDialog();

            lblMainForm_activeUser.Text = form1.username;

            carPanel.Hide();
            panelReservation.Hide();
        }
示例#3
0
        // Constructeur
        public ClientForm(String operation)
        {
            InitializeComponent();
            clientServices = new ClientsServices();

            lblClientCreate_operation.Text = operation;

            // Selection de l'affichage
            if (operation.Equals(OPERATION_CLIENT_CREATION))
            {
                setFieldsVisibility(false);
            }
            else
            {
                setFieldsVisibility(true);
                btnClientCreate_add.Text = ClientForm.OPERATION_CLIENT_UPDATE;
            }
        }
        // Constructeur
        public ReservationForm(String operation)
        {
            InitializeComponent();

            clientServices = new ClientsServices();
            vehiculeServices = new VehiculeServices();
            succursalesService = new SuccursalesServices();
            modelesServices = new ModeleServices();
            reservationServices = new ReservationsServices();

            fillTheComboBoxSuccursale();
            fillTheComboBoxOpenHours();
            lblClientCreate_operation.Text = operation;

            // Selection de l'affichage
            if (operation.Equals(OPERATION_CLIENT_CREATION))
            {
                setFieldsVisibility(true);
                btnClientCreate_add.Text = ReservationForm.OPERATION_CLIENT_UPDATE;
            }
        }