private void AddUserbtn_Click(object sender, RoutedEventArgs e) { FunPage.UserManage.AddUserWindow auw = new UserManage.AddUserWindow(); auw.vm_User.IsEdit = false; auw.ShowDialog(); vm_UserList.GetDataList(); }
private void editmenu_Click(object sender, RoutedEventArgs e) { FunPage.UserManage.AddUserWindow auw = new UserManage.AddUserWindow(); auw.vm_User.UserModel = LBList.Items[LBList.SelectedIndex] as AMS.Model.AMS_UserInfo; auw.vm_User.IsEdit = true; auw.ShowDialog(); vm_UserList.GetDataList(); }