SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
GuiSettings.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 
5 namespace Sample_Environment_Control_Interface
6 {
14  static class GuiSettings
15  {
16  //Webpages
17  private static String _bugzillaUrl;
18  private static String _mcrUrl;
19 
20  public static String BugzillaUrl { get { return _bugzillaUrl; } }
21  public static String McrUrl { get { return _mcrUrl; } }
22 
27  public static void LoadSettings()
28  {
29  try
30  {
31  //Read settings from App.config
32  System.Configuration.AppSettingsReader reader = new System.Configuration.AppSettingsReader();
33 
34  _bugzillaUrl = reader.GetValue("BugzillaURL", typeof(System.String)).ToString();
35  _mcrUrl = reader.GetValue("MCRURL", typeof(System.String)).ToString();
36  }
37  catch
38  {
39  }
40  }
41  }
42 }