private void frmLogin_Load(object sender, EventArgs e) { // soruları kouşullara gore guncelledik MySQLQuerryExecuter mys = new MySQLQuerryExecuter(); string sorgu = "CALL CALC_QUESTABLE_QUESTIONS()"; mys.execute(sorgu); btnUserLogin.Visible = false; btnNewUser.Visible = false; lblKontrol.Visible = false; loginBind db = new loginBind(); List <string> users = new List <string>(); users = db.bindUsers(); foreach (string item in users) { if (item == "Admin") { continue; } cmbUsers.Items.Add(item); } }
void bindUsers() { loginBind db = new loginBind(); List <string> users = new List <string>(); users = db.bindUsers(); foreach (string item in users) { if (item == "Admin") { continue; } cmbUyeler.Items.Add(item); } }