예제 #1
0
        private void BtnSaida_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var fSaida = new LancarSaidaWin();

            fSaida.ShowDialog();

            if (fSaida.cadastrou)
            {
                CarregarDados();
            }
        }
예제 #2
0
        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();
            }
        }