示例#1
0
        private void tsiNewCliente_Click(object sender, EventArgs e)
        {
            NewClient n = new NewClient();

            n.ShowDialog();
            c.DashBoardCreation(textBox1);
        }
        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
                }));
            }
        }
        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");
            }
        }
示例#4
0
        private void AddClientBt_Click(object sender, EventArgs e)
        {
            var form = new NewClient();

            form.ShowDialog(this);
        }