private void lnkNotifications_Click(object sender, EventArgs e) { _Notifications = new pnlNotifications(Notifications, this, Opciones); ////_Settings.Closed += _pnlone_Closed; ////_Settings.Shown += _pnlone_Shown; _Notifications.Closed += _Notifications_Closed; _Notifications.swipe(true); //Opciones = _Settings.Temp; }
private void Menu_Shown(object sender, EventArgs e) { if (Notifications.Count > 0) { DialogResult Result = MetroFramework.MetroMessageBox.Show(this, "Tiene notificaciones pendientes en el sistema. " + "presione 'OK' para abrir el panel de notificaciones y editarlas, puede continuar con la edicion de notificaciones " + "mas tarde dando click al boton de advertencia", "ADVERTENCIA - NOTIFICACIONES PENDIENTES.", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); if (Result == DialogResult.OK) { _Notifications = new pnlNotifications(Notifications, this, Opciones); _Notifications.Closed += _Notifications_Closed; _Notifications.swipe(true); } } if ((Opciones.AutoCorte && Opciones.HoraCorte == null)) { MetroFramework.MetroMessageBox.Show(this, "No se ah podido leer la hora de corte automatica y la opcion esta activada. " + "Entre a opciones, valla a la pestaña 'Control de Horas', ingrese una hora valida y de click al boton guardar", "ADVERTENCIA - HA OCURRIDO UN ERROR.", MessageBoxButtons.OK, MessageBoxIcon.Error); } }