Пример #1
0
        private void btnImportar_Click(object sender, EventArgs e)
        {
            var file = Helpers.OpenFile(@"Ini ACBr (*.ini)|*.ini|Todos os Arquivos (*.*)|*.*");

            if (file.IsEmpty())
            {
                return;
            }

            CTeServiceManager.ImportIniACBr(file);
            LoadServices();
            MessageBox.Show(@"Importação realizada com sucesso.", @"ACBrCTe");
        }
Пример #2
0
        private void btnSalvar_Click(object sender, EventArgs e)
        {
            using (var ofd = new FolderBrowserDialog())
            {
                ofd.SelectedPath = Application.StartupPath;

                if (ofd.ShowDialog(this) != DialogResult.OK)
                {
                    return;
                }

                CTeServiceManager.Save(Path.Combine(ofd.SelectedPath, "services.cte"));
                MessageBox.Show(@"Arquivo salvo com sucesso.", @"ACBrCTe");
            }
        }
 /// <inheritdoc />
 protected override void ArquivoServicoChange()
 {
     CTeServiceManager.Load(ArquivoServicos);
 }