private void CoursePage_btn_Click(object sender, RoutedEventArgs e) { List <Columns> columns = SearchFrameworkHelper.GetColumns(3); Entities.Pages page = SearchFrameworkHelper.GetPage(3); new Page1(page, operators, columns, comp_operators).Show(); }
public void LoadPage() { if (FriendlyUrl.Segments.Count == 0) { PageMessage.message = "Product not found"; MainPanel.Visible = false; return; } int PageId; if (!int.TryParse(FriendlyUrl.Segments[0], out PageId)) { return; } PageDetails = (from p in (new SiteDbContext()).Pages where p.PagesId == PageId select p).FirstOrDefault(); }
public page_design(Entities.Pages pageInfo, String [] operators, List <Columns> columns, List <Operators> compOperators) { InitializeComponent(); this.operators = operators; this.RunningPage = pageInfo; this.fields = (from c in columns select c.DisplayName).ToArray <String>(); this.comparison_operators = (from c in compOperators select c.OperatorName).ToArray <String>(); this.ComparisonOperators = compOperators; this.Columns = columns; stackPanel = new StackPanel(); stackPanel.Orientation = Orientation.Vertical; param_grid.Content = stackPanel; new SearchParamsControls(this, stackPanel, null, fields, comparison_operators); dataGrid.ItemsSource = SearchFrameworkHelper.FetchAllDataOfPage(RunningPage).DefaultView; }
public Page1(Entities.Pages pageInfo, String [] operators, List <Columns> fields, List <Operators> comparison_operators) : base(pageInfo, operators, fields, comparison_operators) { this.Title = pageInfo.PageName; }