public void SetParentWindow(Personalny window) { this.parentWindow = window; this.DomainContext = parentWindow.Resources["PracowContext"] as AwesomePartsContext; }
public WorkerRegistration(Personalny window) { InitializeComponent(); this.parentWindow = window; this.DomainContext = parentWindow.Resources["PracowContext"] as AwesomePartsContext; }