Exemple #1
0
        public expInput(GestionCampagne.Campagne campagneSelected, string emailSelected)
        {
            //Définition du context
            this.context = new Context();
            InitializeComponent();

            this.currentCampagne = campagneSelected;
            this.textBox1.Text   = emailSelected;
        }
 public DetailsCampagne(GestionCampagne.Campagne campagneSelected)
 {
     this.context        = new Context();
     this.contactService = new ContactService(this.context);
     InitializeComponent();
     this.currentCampagne = campagneSelected;
     this.label2.Text     = this.currentCampagne.NomCampagne;
     this.LoadEmails();
 }
Exemple #3
0
        //Ajouter une campagne ( boutton ajouter campagne)
        public async void button1_Click(object sender, EventArgs e)
        {
            var newCampagne = new GestionCampagne.Campagne();

            newCampagne.NomCampagne = this.textBox1.Text;
            await this.campagneService.AddCampagne(newCampagne);

            this.textBox1.Text = null;
            this.Campagne_Load();
        }
Exemple #4
0
 public Settings(GestionCampagne.Campagne currentCampagne, string to, string obj, string msg, bool allCampagne)
 {
     this.currentCampagne = currentCampagne;
     this.to             = to;
     this.obj            = obj;
     this.msg            = msg;
     this.allCampagne    = allCampagne;
     this.context        = new Context();
     this.contactService = new ContactService(this.context);
     this.mailService    = new MailService(this.context);
     InitializeComponent();
 }
Exemple #5
0
 public expInput(GestionCampagne.Campagne campagneSelected)
 {
     this.currentCampagne = campagneSelected;
     this.context         = new Context();
     InitializeComponent();
 }