Exemplo n.º 1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            ClientsList clientsList = new ClientsList(dataBaseAC);

            clientsList.isForSelectClient = false;
            clientsList.ShowDialog();
            DataGridFormating();
        }
        private void chooseClientBtn_Click(object sender, RoutedEventArgs e)
        {
            ClientsList clientsList = new ClientsList(dataBaseAC);

            clientsList.isForSelectClient = true;
            if (clientsList.ShowDialog() == true)
            {
                selectedClient = clientsList.SelectedClient;
                clientSurnameTxtBox.Content      = selectedClient.Surname;
                clientNameTxtBox.Content         = selectedClient.Name;
                clientMiddleNameTxtBox.Content   = selectedClient.Middle_name;
                clientPassNumberTxtBox.Content   = selectedClient.Pass_number;
                clientPhoneNumberTxtBox.Content  = selectedClient.Phone_number;
                clientPhoneNumber2TxtBox.Content = selectedClient.Phone_number2;
                productsStackPanel.IsEnabled     = true;
            }
        }