コード例 #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";
     }
 }
コード例 #2
0
        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";
            }
        }