private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            comboBox_nameClientEditClient.ItemsSource       = sql.getClients();
            comboBox_nameClientEditClient.DisplayMemberPath = "NameClient";
            comboBox_nameClientEditClient.SelectedIndex     = 0;

            if (client != null)
            {
                comboBox_nameClientEditClient.Text = client.NameClient;
            }
            else
            {
                comboBox_nameClientEditClient.SelectedIndex = 0;
            }

            textsforTextboxes((Client)comboBox_nameClientEditClient.SelectedItem);
        }
        public void LoadClients()
        {
            //Load Clients
            List <Client> clients = sql.getClients();

            clients.Sort();

            comboBox_nameClientEditRepair.ItemsSource       = clients;
            comboBox_nameClientEditRepair.DisplayMemberPath = "NameClient";

            if (client != null)
            {
                comboBox_nameClientEditRepair.Text = client.NameClient;
                textBox_ContactEditRepair.Text     = client.Contact;
                textBox_PhoneEditRepair.Text       = client.Phone;
                textBox_AddressEditRepair.Text     = client.Address;
                textBox_EmailEditRepair.Text       = client.Email;
            }
            else
            {
                comboBox_nameClientEditRepair.SelectedIndex = 0;
            }
            clients = null;
        }