Exemplo n.º 1
0
        private void BtnNewClient_Click(object sender, RoutedEventArgs e)
        {
            AddOrUpdateClient updateClient = new AddOrUpdateClient();

            if (CheckIsOkClick(updateClient))
            {
                UpdateSourceCollection();
            }
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
 private static bool CheckIsOkClick(AddOrUpdateClient updateClient)
 {
     return(updateClient.ShowDialog() == true);
 }