private void UpdateLCAP() { SeedRecipeData data = SeedRecipe.GetRecipesForSeed(Seed); lblAPMaterial1.Text = SeedRecipe.MaterialToString(data.AlchemicalPrecursor.Material1); lblAPMaterial3.Text = SeedRecipe.MaterialToString(data.AlchemicalPrecursor.Material2); lblAPMaterial2.Text = SeedRecipe.MaterialToString(data.AlchemicalPrecursor.Material3); lblLCMaterial1.Text = SeedRecipe.MaterialToString(data.LivelyConcoction.Material1); lblLCMaterial3.Text = SeedRecipe.MaterialToString(data.LivelyConcoction.Material2); lblLCMaterial2.Text = SeedRecipe.MaterialToString(data.LivelyConcoction.Material3); }
private void LCAPForm_Load(object sender, EventArgs e) { Analytics.TrackPage("LCAP Form", "/lcap-form"); SeedRecipeData data = SeedRecipe.GetRecipesForSeed(Seed); label1.Text = Seed.ToString(); lblAPMaterial1.Text = SeedRecipe.MaterialToString(data.AlchemicalPrecursor.Material1); lblAPMaterial3.Text = SeedRecipe.MaterialToString(data.AlchemicalPrecursor.Material2); lblAPMaterial2.Text = SeedRecipe.MaterialToString(data.AlchemicalPrecursor.Material3); lblLCMaterial1.Text = SeedRecipe.MaterialToString(data.LivelyConcoction.Material1); lblLCMaterial3.Text = SeedRecipe.MaterialToString(data.LivelyConcoction.Material2); lblLCMaterial2.Text = SeedRecipe.MaterialToString(data.LivelyConcoction.Material3); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseStatusCodePages(); app.UseAuthentication(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); app.UseStaticFiles(); SeedRecipe.EnsurePopulated(app); IdentitySeedData.EnsurePopulated(app); }