Professional Documents
Culture Documents
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.Sql;
using System.Data.OleDb;
using System.Data.SqlClient;
namespace WindowsFormsApp4
{
public partial class Form_login : Form
{
SqlConnection con = new SqlConnection();
public Form_login()
{
SqlConnection con = new SqlConnection();
con.ConnectionString = "Data Source=DESKTOP-NAOEH82;Initial
Catalog=Nomina; Integrated Security=SSPI";
InitializeComponent();
}
this.Hide();
Form_menu fr = new Form_menu();
fr.Show();
}
else
{
MessageBox.Show("Invalid Login please check username and
password");
}
con.Close();
}
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp4
{
public partial class Form_menu : Form
{
public Form_menu()
{
InitializeComponent();
}
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp4
{
public partial class Form_empleado : Form
{
public Form_empleado()
{
InitializeComponent();
}
this.Validate();
this.empleadoBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.nominaDataSet);
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp4
{
public partial class Form_sueldo : Form
{
double sueldo = 0;
public Form_sueldo()
{
InitializeComponent();
}
double descuento = 0;
if (sueldo > 2000) descuento = sueldo * (12.5 / 100);
lblSueldo.Text = sueldo.ToString("C");
}
this.Hide();
Form_menu fr = new Form_menu();
fr.Show();
}
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace WindowsFormsApp4
{
public partial class Form_Registro : Form
{
public Form_Registro()
{
SqlConnection con = new SqlConnection();
con.ConnectionString = "Data Source=DESKTOP-NAOEH82;Initial
Catalog=Nomina; Integrated Security=SSPI";
InitializeComponent();
}
}
}
}