Exemplo n.º 1
0
        private void BuildBlueprintDetailsHeader()
        {
            Model  model  = GetDialogCustomData <Model>();
            string header = _structure.BuildMenuHeader(model.BlueprintID);

            SetPageHeader("BlueprintDetailsPage", header);
        }
Exemplo n.º 2
0
        private void HandleBlueprintListPageResponse(int responseID)
        {
            Model          vm          = GetDialogCustomData <Model>();
            DialogResponse response    = GetResponseByID("BlueprintListPage", responseID);
            int            blueprintID = (int)response.CustomData[string.Empty];

            if (blueprintID == -1)
            {
                if (vm.Mode == 1)
                {
                    ChangePage("CraftCategoriesPage");
                }
                else
                {
                    ChangePage("ConstructionCategoriesPage");
                }
                return;
            }

            string header;

            if (vm.Mode == 1)
            {
                header = _craft.BuildBlueprintHeader(GetPC(), blueprintID);
            }
            else
            {
                header = _structure.BuildMenuHeader(blueprintID);
            }

            SetPageHeader("BlueprintDetailsPage", header);
            ChangePage("BlueprintDetailsPage");
        }