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(); }
//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(); }
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(); }
public expInput(GestionCampagne.Campagne campagneSelected) { this.currentCampagne = campagneSelected; this.context = new Context(); InitializeComponent(); }