public Dial_View_Heure_Prevu(Form_Presence parent, Presence presence) { InitializeComponent(); Configuration.Load(this); this.current = presence; this.parent = parent; }
private void envoyerSurLaVueDesPrésencesToolStripMenuItem_Click(object sender, EventArgs e) { if (presence != null ? presence.Id > 0 : false) { if (Constantes.FORM_PRESENCE == null) { Form_Presence f = new Form_Presence(presence); f.Show(); Constantes.FORM_PRESENCE = f; Utils.WriteLog("Ouverture page (Gestion Présence)"); Utils.addFrom("Form_Presence"); } else { Constantes.FORM_PRESENCE.WindowState = FormWindowState.Normal; Constantes.FORM_PRESENCE.BringToFront(); Constantes.FORM_PRESENCE.Presence = presence; Constantes.FORM_PRESENCE.InitForm(); } this.Dispose(); } }