public CustomerListViewModel() { Customers = new XPInstantFeedbackView(typeof(Customer), new ServerViewProperty[] { new ServerViewProperty("Oid", "Oid"), new ServerViewProperty("ContactName", SortDirection.Ascending, new OperandProperty("ContactName")) }, null); }
public OrderListViewModel() { Orders = new XPInstantFeedbackView(typeof(Order), new ServerViewProperty[] { new ServerViewProperty("Oid", "Oid"), new ServerViewProperty("OrderDate", SortDirection.Ascending, new OperandProperty("OrderDate")), new ServerViewProperty("ProductName", "ProductName") }, null); }
public MainWindow() { InitializeComponent(); var properties = new ServerViewProperty[] { new ServerViewProperty("Oid", SortDirection.Ascending, new OperandProperty("Oid")), new ServerViewProperty("Subject", SortDirection.None, new OperandProperty("Subject")), new ServerViewProperty("UserId", SortDirection.None, new OperandProperty("UserId")), new ServerViewProperty("Created", SortDirection.None, new OperandProperty("Created")), new ServerViewProperty("Votes", SortDirection.None, new OperandProperty("Votes")), new ServerViewProperty("Priority", SortDirection.None, new OperandProperty("Priority")) }; var source = new XPInstantFeedbackView(typeof(XPOIssues.Issues.Issue), properties, null); source.ResolveSession += (o, e) => { e.Session = new Session(); }; grid.ItemsSource = source; LoadLookupData(); }