コード例 #1
0
 public static ConfigurationManager GetInstance()
 {
     if (_instance == null)
     {
         return _instance = new ConfigurationManager();
     }
     return _instance;
 }
コード例 #2
0
        private PreferencesForm()
        {
            InitializeComponent();

            _configManager = Configuration.ConfigurationManager.GetInstance();

            combobox_server_prefix.Items.Add("http://");
            combobox_server_prefix.Items.Add("https://");

            version_lbl.Text = string.Format("Version : {0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString().Substring(0, 5));
        }