public void Reload()
        {
            var page = new Window_LineManagementUI(this.line, this.previousPage);

            Text.Font   = GameFont.Small;
            Text.Anchor = TextAnchor.UpperLeft;
            this.Close();
            Find.WindowStack.Add(page);
        }
 public Window_RecipeManagement(AssemblyLine line, Window_LineManagementUI previousPage)
     : base(line, "RecipeManagementHelp".Translate())
 {
     this.previousPage = previousPage;
     if (recipesList != null)
     {
         recipesList.Sort((o, y) => o.label.CompareTo(y.label));
         selectedDef = recipesList.First();
         config      = new OrderConfig(selectedDef);
     }
 }
 public Window_RecipeManagement(AssemblyLine line, Window_LineManagementUI previousPage)
     : base(line, "RecipeManagementHelp".Translate())
 {
     this.previousPage = previousPage;
     if (recipesList != null)
     {
         recipesList.Sort((o, y) => o.label.CompareTo(y.label));
         selectedDef = recipesList.First();
         config = new OrderConfig(selectedDef);
     }
 }
 public void GoBack(bool reload = false)
 {
     Text.Font   = GameFont.Small;
     Text.Anchor = TextAnchor.UpperLeft;
     this.Close();
     Find.WindowStack.Add(previousPage);
     if (reload)
     {
         Window_LineManagementUI page = previousPage as Window_LineManagementUI;
         if (page != null)
         {
             page.Reload();
         }
     }
 }
 public void Reload()
 {
     var page = new Window_LineManagementUI(this.line, this.previousPage);
     Text.Font = GameFont.Small;
     Text.Anchor = TextAnchor.UpperLeft;
     this.Close();
     Find.WindowStack.Add(page);
 }