Quiero guardar los valores enteros y booleanos en la bd pero no me da error de codigo solo me lanza el messagebox de "Hubo un error, porfavor intente de nuevo." txt a guardar son:
TxtMinuteGrouping2, TxtCommandGrouping, TxtGroupingRelease.
este es mi funcion de SaveConfiguration()
private void SaveConfiguration()
{
try
{
this.bizKitchenNEWConfiguration.GroupCommands = Int32.Parse(this.TxtCommandGrouping.Text);
this.bizKitchenNEWConfiguration.GroupMinutes = Int32.Parse(this.TxtMinuteGrouping.Text);
this.bizKitchenNEWConfiguration.IsReleaseGroupedComms = this.TxtGroupingRelease.Text;
this.bizKitchenNEWConfiguration.GroupCommands = Int32.Parse(this.TxtCommandGrouping.Text);
this.TextMessage = "La configuración fue guardada con éxito.";
this.ShowMessageForm();
this.Close();
}
catch
{
this.TextMessage = "Hubo un error, porfavor intente de nuevo.";
this.ShowMessageForm();
}
}
AQUI BIZKITCHENNEWCONFIGURATION
namespace Parrot.Kitchen.Business.Entities.Model
{
public class BizKitchenNEWConfiguration
{
public int GroupMinutes { get; set; }
public int GroupCommands { get; set; }
public string IsReleaseGroupedComms { get; set; }
}
}