private void SettingButtonClicked(object obj) { child = new UserAccountSettingsWindow(currentUser); child.Owner = dashboard; dashboard.IsEnabled = false; dashboard.Visibility = Visibility.Hidden; child.Show(); }
/// <summary> /// UsserAccountSettingsWindowVM Constructor takes the current user and UserAccountSettingsWindow /// and sets cur = current, and parent = rent. /// </summary> /// <param name="current"></param> /// <param name="rent"></param> public UserAccountSettingsWindowVM(User current, UserAccountSettingsWindow rent) { cur = current; parent = rent; }