private void BtnClientName_Click(object sender, RoutedEventArgs e) { Client clientToUpdate = ((Button)sender).Tag as Client; AddOrUpdateClient updateClient = new AddOrUpdateClient(clientToUpdate); if (updateClient.ShowDialog() == true) { UpdateSourceCollection(); } }
private static bool CheckIsOkClick(AddOrUpdateClient updateClient) { return(updateClient.ShowDialog() == true); }