public TanquesLista(String arquivo) { InitializeComponent(); this.arquivo = arquivo; cfg = new DAL.Config().PesquisarPorId(1); PreencheDados(); }
private Int32 Gravar() { cfg = new DTO.Config(); cfg.ConfigLogin = Login.Text; cfg.ConfigEndereco = Endereco.Text; cfg.ConfigCNPJ = CNPJ.Text; return(new DAL.Config().Inserir(cfg)); }
public Config() { InitializeComponent(); LimpaCampos(); cfg = new DAL.Config().PesquisarPorId(1); if (cfg != null) { PreencheCampos(cfg); } }
public ConexaoFTP(DTO.Config cfg, String Pasta, String Ext) { request = new WebClient(); this.url = Path.Combine(cfg.ConfigEndereco, Pasta + cfg.ConfigCNPJ + Ext); request.Credentials = new NetworkCredential(cfg.ConfigLogin, VariaveisControle.senhaWebServer); }
public Int32 Alterar(DTO.Config config) { return(new ConexaoBD().getConexao().Update(config)); }
public Int32 Inserir(DTO.Config config) { return(new ConexaoBD().getConexao().Insert(config)); }
private void PreencheCampos(DTO.Config cfg) { Login.Text = cfg.ConfigLogin; Endereco.Text = cfg.ConfigEndereco; CNPJ.Text = cfg.ConfigCNPJ; }