I need to make a simple query in a login.
The query would be to see how many employees are registered, if there are no registered employees show a message and then register it.
thanks
public partial class WPF1_Login : MetroWindow
{
STKDB bdd = new STKDB();
Funciones fn = new Funciones();
public int empleados;
public WPF1_Login()
{
InitializeComponent();
}
private async void MetroWindow_Loaded(object sender, RoutedEventArgs e)
{
if (empleados == 1)
{
string msj1 = "No hay empleados registrados";
Btn_Aux.Content = "Crear Usuario Administrador";
await fn.Crear_MensajeAsync(Grd_Cont, msj1, 1000);
}
else if (empleados == 0)
{
string msj1 = "Empleados es 0";
Btn_Aux.Content = "Crear Usuario Administrador";
await fn.Crear_MensajeAsync(Grd_Cont, msj1, 1000);
}
}