private void passwordmenu_Click(object sender, RoutedEventArgs e) { FunPage.MainPageInfo.PassChangeWindow pcw = new MainPageInfo.PassChangeWindow(); pcw.vm_Password.UserInfo = LBList.Items[LBList.SelectedIndex] as AMS.Model.AMS_UserInfo; pcw.vm_Password.IsAdmin = true; pcw.ShowDialog(); }
private void PasswordChangebtn_Click(object sender, RoutedEventArgs e) { FunPage.MainPageInfo.PassChangeWindow pcw = new MainPageInfo.PassChangeWindow(); pcw.vm_Password.UserInfo = AMS.ViewModel.ViewModelObject.User; pcw.ShowDialog(); }