public static string CommitteeLink(string committee) { int cs = committee.IndexOf(" -- "); string id = Reps.GetCommitteeId(Util.CurrentSession, cs == -1 ? committee : committee.Substring(0, cs), cs == -1 ? "" : committee.Substring(cs + 4)); return(Util.UrlBase + "/congress/committee.xpd?id=" + id); }
public static void InitData(bool allowDelayedLoad) { lock (typeof(AppModule)) { if (didInit) { return; } didInit = true; try { if (allowDelayedLoad) { Console.Error.WriteLine("Initializing GovTrack..."); } new Util(); // be sure to call static constructor from App and not in a thread worker later Pages.Index.Init(allowDelayedLoad); Reps.Init(allowDelayedLoad); Subjects.Init(allowDelayedLoad); Pages.Congress.Vote.Init(allowDelayedLoad); if (allowDelayedLoad) { Console.Error.WriteLine("GovTrack initialization complete."); } } catch (Exception e) { Console.Error.WriteLine("Fatal error initializing GovTrack:"); Console.Error.WriteLine(e); Console.Error.WriteLine("Terminating."); System.Environment.Exit(1); } } }
public override string ToString() { return("By " + Reps.FormatPersonName(Sponsor, "now", "")); }