public LoginPage(MainWindow _mainWindow) { InitializeComponent(); employeeAuthentication = new EmployeeAuthenticationClient(); UserAccountSC = new UserAccountSecureServiceClient(); thisWindow = _mainWindow; }
public EmployeeDetails(ClientCredentials cc, Employee employee) { InitializeComponent(); isNewEmployeeEnable = false; SaveButton.IsEnabled = false; UserAccountSecureService = new UserAccountSecureServiceClient(); employeeService = new EmployeeSecureServiceClient(); employeeService.ClientCredentials.UserName.UserName = cc.UserName.UserName; employeeService.ClientCredentials.UserName.Password = cc.UserName.Password; //CreateNewUserAccount.IsEnabled = true; actualEmployee = employee; UpdateUserDetails(); //GetUserAccount(actualEmployee.Id.Value); }
//Add new Employee. public EmployeeDetails(ClientCredentials cc) { InitializeComponent(); isNewEmployeeEnable = true; employeeService = new EmployeeSecureServiceClient(); UserAccountSecureService = new UserAccountSecureServiceClient(); actualEmployee = new Employee(); employeeService.ClientCredentials.UserName.UserName = cc.UserName.UserName; employeeService.ClientCredentials.UserName.Password = cc.UserName.Password; UserAccountSecureService.ClientCredentials.UserName.UserName = cc.UserName.UserName; UserAccountSecureService.ClientCredentials.UserName.Password = cc.UserName.Password; OpenAllTextBoxes(); EditButton.IsEnabled = false; }