Example #1
0
 public static ConfigLoader GetInstance()
 {
     if (_configLoader == null)
     {
         _configLoader = new ConfigLoader();
     }
     return(_configLoader);
 }
Example #2
0
      private void config_btn_Click(object sender, EventArgs e)
      {
          string selectedVersion = comboBox_version.SelectedItem.ToString();
          string connect_ip      = connectIP.Text.Trim();

          cur_version = selectedVersion;
          string filename = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory,
                                                   @"firmwareFiles\" + selectedVersion + ".xml");

          ConfigLoader.GetInstance().loadXml(filename, connect_ip);
          this.Close();
      }