public ModifiUserForm(Users curentUser) { InitializeComponent(); // title Family name this.Text = homeBugaltery.getFamilyName(curentUser.Family_Id); this.curentUser = curentUser; updateUsers(); enabledForm(false); }
public UsersWindow(HomeBugaltery hb, Users user) { InitializeComponent(); this.hb = hb; Title = hb.getFamilyName(user.Family_Id); this.user = user; ListBoxUsers.ItemsSource = users = new ObservableCollection <Users>(); TextBoxEditName.Text = user.Name; TextBoxEditEmail.Text = user.Email; TextBoxEditPassword.Text = user.Password; UpdateListBoxUsers(); ButtonRemoveUser.IsEnabled = false; }