public ZamowieniaKlienta(ProfileDisplay window) { InitializeComponent(); this.parentWindow = window; this.ZamowieniaGrid.SelectionChanged += new SelectionChangedEventHandler(ZamowieniaGrid_SelectionChanged); this.ZamowieniaSource.QueryParameters.Add(new Parameter { ParameterName = "klientID", Value = parentWindow.RegistrationData.id }); this.ZamowieniaSource.Load(); }
public void SetParentWindow(ProfileDisplay window) { this.parentWindow = window; this.RegistrationData = parentWindow.RegistrationData; profileContext = parentWindow.Resources["ProfilContext"] as ProfileContext; }