public string GetResourceValue() { string displayText = RManager.GetWord(ResourceKey); if (displayText == null) { throw new System.Exception("Invalid Resource Key"); } return(displayText); }
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); } } }
private static void NextTick(object sender, ElapsedEventArgs e) { RManager.NextTick(e.SignalTime, Population.TheBest.Distance, Population.CurrentGeneration); //RManager.NextTick(e.SignalTime, Population); }