public int login(string username, string password) { int result = 0; User user = new User(); user.UserName = username; user.Password = password; user.Path = Application.StartupPath + "\\" + username + ".tdc"; result = user.Login(); if (result == 1) { CurrentUser = user.GetBy(username); ; } else { CurrentUser = null; } return result; }
public int login(string username, string password) { int result = 0; User user = new User(); user.UserName = username; user.Password = password; user.Path = Application.StartupPath + "\\" + username + ".tdc"; result = user.Login(); return result; }