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();
        }
示例#2
0
 public void SetParentWindow(ProfileDisplay window)
 {
     this.parentWindow = window;
     this.RegistrationData = parentWindow.RegistrationData;
     profileContext = parentWindow.Resources["ProfilContext"] as ProfileContext;
 }