Oprava okna pridavania polotvaru
Otvorene ziadanky pre zdenku
This commit is contained in:
@@ -5,7 +5,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Mip
|
||||
{
|
||||
public partial class frmLogin : Form
|
||||
public partial class frmLogin : Form
|
||||
{
|
||||
|
||||
DataTable dTable;
|
||||
@@ -25,7 +25,7 @@ namespace Mip
|
||||
{
|
||||
|
||||
classSQL.SQL("SELECT * FROM tabusers Where `Status` = 'Aktívny' ORDER BY Priezvisko;", out dTable);
|
||||
|
||||
|
||||
foreach (DataRow row in dTable.Rows)
|
||||
{
|
||||
comboBox1.Items.Add(row["Titul"].ToString() + " " + row["Priezvisko"].ToString() + " " + row["Meno"].ToString());
|
||||
@@ -43,16 +43,16 @@ namespace Mip
|
||||
{
|
||||
DataRow myDrow;
|
||||
myDrow = dTable.Rows[comboBox1.SelectedIndex];
|
||||
|
||||
|
||||
if (myDrow[3].ToString() == textBox1.Text)
|
||||
{
|
||||
classUser.Meno = myDrow[0].ToString();
|
||||
classUser.Priezvisko = myDrow[1].ToString();
|
||||
classUser.Titul = myDrow[2].ToString();
|
||||
classUser.ID = Convert.ToInt32(myDrow["IDUsers"]);
|
||||
classUser.Tab = Convert.ToInt32( myDrow[5]);
|
||||
classUser.Tab = Convert.ToInt32(myDrow[5]);
|
||||
classUser.Zaradenie = myDrow[7].ToString();
|
||||
|
||||
|
||||
this.Close(); //Kontrola hesla
|
||||
}
|
||||
else
|
||||
@@ -60,10 +60,10 @@ namespace Mip
|
||||
MessageBox.Show("Nesprávne heslo!");
|
||||
textBox1.Clear();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
@@ -72,7 +72,7 @@ namespace Mip
|
||||
textBox1.Select();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
@@ -83,8 +83,8 @@ namespace Mip
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user