Beispiel #1
0
 private void btnLoadProducts_Click(object sender, EventArgs e)
 {
     try
     {
         AddAllProducts();
         ShowInformationMessage("Productos cargados correctamente!", "Información");
         logStrategy.SaveEntry(new LogEntry(ActionType.PRODUCT_LOAD, signedInUserEmail));
     }
     catch (Exception)
     {
         ShowErrorMessage("Hubo un problema al cargar el archivo seleccionado, por favor asegúrese de que el formato " +
                          "es correcto e intente nuevamente", "Error");
     }
 }
        private void AddEntryToLog()
        {
            LogEntry newEntry = new LogEntry(ActionType.LOGIN, this.txtEmailLogin.Text);

            logStrategy.SaveEntry(newEntry);
        }