Ejemplo n.º 1
0
        private void tsiNewCliente_Click(object sender, EventArgs e)
        {
            NewClient n = new NewClient();

            n.ShowDialog();
            c.DashBoardCreation(textBox1);
        }
Ejemplo n.º 2
0
        public void AddClient(object arg)
        {
            NewClient newClientDialog = new NewClient();

            if (newClientDialog.ShowDialog() == true)
            {
                Clients.Add(new ClientViewModel(new Model.Client()
                {
                    Name  = newClientDialog.CName,
                    City  = newClientDialog.City,
                    Email = newClientDialog.Email
                }));
            }
        }
Ejemplo n.º 3
0
        private void NouveauClient()
        {
            NewClient       nc   = new NewClient();
            ClientViewModel ncVM = new ClientViewModel(new ClientsService(), new Client());

            nc.DataContext = ncVM;

            nc.ShowDialog();

            if (ncVM.ID != 0)
            {
                ListeChoixClient.Add(ncVM);
                CurrentReservation.Client = ncVM;
                NotifyPropertyChanged("CurrentReservationClient");
            }
        }
Ejemplo n.º 4
0
        private void AddClientBt_Click(object sender, EventArgs e)
        {
            var form = new NewClient();

            form.ShowDialog(this);
        }