private void BtnEditClient_Click(object sender, RoutedEventArgs e) { Client client = ((FrameworkElement)sender).DataContext as Client; AddClient addClientWindow = new AddClient(client); addClientWindow.Show(); }
public AddProductClient(AddClient parent) { InitializeComponent(); ProductBS productBs = new ProductBS(); productList = productBs.getAllProduct(); cboProduct.ItemsSource = productList; this.parent = parent; }
private void BtnNewClient_Click(object sender, RoutedEventArgs e) { AddClient addClientWindow = new AddClient(null); addClientWindow.Show(); }