Exemplo n.º 1
0
 private void resetEstimation()
 {
     if (this.controller.ConstructionQueue.Any())
     {
         this.estimationLabel.Text = LocalizationMethods.ConstructionEstimation(
             this.controller.ConstructionQueue.First(),
             context["EtaNever"],
             context["BuildingsPerTurn"],
             context["Eta"]
             );
     }
     else
     {
         this.estimationLabel.Text = "No construction plans";
     }
 }
        private void resetEstimation()
        {
            var constructionItem = controller.ConstructionQueue.FirstOrDefault();
            var context          = LocalizationManifest.Get.CurrentLanguage["FormMain"];

            if (constructionItem != null)
            {
                estimationLabel.Text = LocalizationMethods.ConstructionEstimation(
                    constructionItem,
                    context["EtaNever"],
                    context["BuildingsPerTurn"],
                    context["Eta"]
                    );
            }
            else
            {
                estimationLabel.Text = "No construction plans";
            }
        }