private void BtnSaida_Click(object sender, System.Windows.RoutedEventArgs e) { var fSaida = new LancarSaidaWin(); fSaida.ShowDialog(); if (fSaida.cadastrou) { CarregarDados(); } }
private void lvwSaidas_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (lvwSaidas.SelectedIndex >= 0) { var caixa = lvwSaidas.SelectedItems[0] as CaixaSaidaModel; var cadLancar = new LancarSaidaWin(caixa); cadLancar.ShowDialog(); if (cadLancar.cadastrou) { CarregarDados(); } } else { Mbox.SelecioneUmaLinhaDaTabela(); } }