private void SLUAnnonceur_AddNewValue(object sender, XtraEditors.Controls.AddNewValueEventArgs e) { Cursor.Current = Cursors.WaitCursor; var form = new frmEditAnnonceur(null, true); form.Location = new Point(Left + (Width - form.Width) / 2, Top + (Height - form.Height) / 2); form.ShowDialog(); editionCampagnePresenter.Display(); SLUAnnonceur.Properties.DataSource = Annonceurs; Cursor.Current = Cursors.Default; }
private void SLUAnnonceur_AddNewValue(object sender, XtraEditors.Controls.AddNewValueEventArgs e) { Cursor.Current = Cursors.WaitCursor; var form = new frmEditAnnonceur(null, true); //form.Load += OnEditMailFormLoad; //form.FormClosed += OnEditMailFormClosed; form.Location = new Point(Left + (Width - form.Width) / 2, Top + (Height - form.Height) / 2); form.ShowDialog(); form.Activate(); Cursor.Current = Cursors.Default; }