public AddSubstation(HomeVM home) { InitializeComponent(); DataContext = new AddSubstationVM(this, home); }
public AddSubstation(AddSubstationVM vm) { viewModel = vm; }