Exemplo n.º 1
0
 public RomFileWorker(Model.Configuration configuration)
 {
     Configuration    = configuration;
     BackgroundWorker = new BackgroundWorker
     {
         WorkerReportsProgress      = true,
         WorkerSupportsCancellation = true
     };
 }
Exemplo n.º 2
0
 private void SendMail(Model.Register pModel, Model.Configuration pConfig)
 {
     if (pConfig.IdadeEmail < pModel.Idade)
     {
         CoreHelper.EmailHandler.EnviarEmail(new CoreHelper.EmailHandler.EmailModel()
         {
             Destinatario = new string[] { pModel.Email, pConfig.Email },
             Assunto      = "Registro",
             Mensagem     = ReplaceText(pConfig.TextoEmail, pModel),
         });
     }
 }
        public Model.Configuration GetConfiguration()
        {
            _configuration = new Model.Configuration();

            XmlDocument.Load(Path.Combine(_directory, "Configuration.xml"));

            ReadBestMatch();

            ReadSystems();

            return(_configuration);
        }
Exemplo n.º 4
0
 public ActionResult Create(Model.Configuration pModel)
 {
     try
     {
         new Logic.Configuration().Add(pModel);
     }
     catch (Exception ex)
     {
         ViewBag.erro = ex.Message;
         return(View("Index", ViewBag.erro));
     }
     return(View("Index", pModel));
 }
Exemplo n.º 5
0
 public void SetUp()
 {
     cfg = new Configuration();
     cfg.Properties["connection.provider"] = "NHibernate.Connection.DriverConnectionProvider";
     cfg.Properties["connection.driver_class"] = "NHibernate.Driver.SqlClientDriver";
     cfg.Properties["connection.connection_string"] =
         "Data Source=.\\SQLEXPRESS;Initial Catalog=test;Integrated Security=SSPI";
     cfg.Properties["dialect"] = "NHibernate.Dialect.MsSql2000Dialect";
     cfg.Properties["proxyfactory.factory_class"] =
         "NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle";
     cfg.Properties["show_sql"] = "true";
     cfg.AddAssembly("BlogSharp.NHibernate");
     factory = cfg.BuildSessionFactory();
     var export = new SchemaExport(cfg);
     export.Execute( true, false, true);
 }
Exemplo n.º 6
0
 partial void DeleteConfiguration(Configuration instance);
Exemplo n.º 7
0
 partial void UpdateConfiguration(Configuration instance);
Exemplo n.º 8
0
 partial void InsertConfiguration(Configuration instance);
Exemplo n.º 9
0
 public void Update(Model.Configuration pModel)
 {
     DAO.Update(pModel);
 }
Exemplo n.º 10
0
 public int Add(Model.Configuration pModel)
 {
     return(DAO.Add(pModel));
 }