Beispiel #1
0
        public string GetResourceValue()
        {
            string displayText = RManager.GetWord(ResourceKey);

            if (displayText == null)
            {
                throw new System.Exception("Invalid Resource Key");
            }
            return(displayText);
        }
Beispiel #2
0
 public void InitializeMenuItemHeaders()
 {
     foreach (var item in UI_Menu.Items)
     {
         var    menuItem = (MenuItem)item;
         object Tag      = menuItem.Tag;
         if (Tag != null)
         {
             string tag = Tag.ToString();
             menuItem.Header = RManager.GetWord(tag);
         }
     }
 }
Beispiel #3
0
 private static void NextTick(object sender, ElapsedEventArgs e)
 {
     RManager.NextTick(e.SignalTime, Population.TheBest.Distance, Population.CurrentGeneration);
     //RManager.NextTick(e.SignalTime, Population);
 }