protected void openProject(object sender, RoutedEventArgs e) { Button button = sender as Button; ModelSzakmaiBevont items = button.DataContext as ModelSzakmaiBevont; Session.ProjektID = items.id; grid.Children.Clear(); grid.Children.Add(szakmaiProjektDataSheet = new SzakmaiProjektDataSheet(grid)); }
protected void openProject(object sender, RoutedEventArgs e) { Button button = sender as Button; Projekt_Bevont_struct items = button.DataContext as Projekt_Bevont_struct; pControl.ProjektID = items.id; grid.Children.Clear(); grid.Children.Add(szakmaiProjektDataSheet = new SzakmaiProjektDataSheet(grid)); }