public InventoryViewModel() { InventoryItems = new BindableCollection <InventoryModel>(Read.Inventory()); ClassOnes = new BindableCollection <string>(Read.Dropdown("InventoryClassOne")); ClassTwos = new BindableCollection <string>(Read.Dropdown("InventoryClassTwo")); QuantityTypes = new BindableCollection <string>(Read.Dropdown("InventoryQuantityType")); universalHelper = new UniversalHelper(); }
public UnitViewModel() { ProgressOfUnits = new BindableCollection <UnitProgressModel>(Read.UnitProgress()); Units = new BindableCollection <UnitModel>(Read.Units()); UnitNames = new BindableCollection <string>(Read.Dropdown("Unit")); UnitTypes = new BindableCollection <string>(Read.Dropdown("UnitType")); UnitStatuses = new BindableCollection <string>(Read.Dropdown("UnitStatus")); RightSideUP = false; universalHelper = new UniversalHelper(); }
public dynamic IndexAction(RecentBlogPostsBindingModel input, string tag = "") { var model = UniversalHelper.Project(input, BlogPosts, tag); if (!model.Posts.Any()) { return(input.Page > 1 ? HttpStatusCode.NotFound : Response.AsText("Just1n尚未发表任何文章!", "text/html; charset=utf-8")); } ViewBag.Tag = tag; return(View["index", model]); }
public SupplierViewModel() { Suppliers = new BindableCollection <SupplierModel>(Read.Suppliers()); universalHelper = new UniversalHelper(); }
public UserViewModel() { Users = new BindableCollection <UserModel>(Read.Users()); universalHelper = new UniversalHelper(); }
public EmployeeViewModel() { Employees = new BindableCollection <EmployeeModel>(Read.Employees()); Positions = new BindableCollection <string>(Read.Dropdown("EmployeePosition")); universalHelper = new UniversalHelper(); }
public void ReFetchPosts() { BlogPosts = UniversalHelper.FetchPosts(true); }
static BaseModule() { BlogPosts = UniversalHelper.FetchPosts(); }