private void Button_Click_1(object sender, RoutedEventArgs e) { try { ControloClientes.GuardarDados(); } catch (Exception t) { MessageBox.Show(string.Format("{0}", t)); } }
private void Voltar_Click(object sender, RoutedEventArgs e) { try { ControloClientes.GuardarDados(); } catch (Exception t) { MessageBox.Show(string.Format("{0}", t)); } MainWindow main = new MainWindow(); main.Show(); this.Close(); }