Example #1
0
        private void PermissionsManager_Load(object sender, EventArgs e)
        {
            try
            {
                cbConnection.ComboBox.SelectionChangeCommitted  += cbConnection_SelectedIndexChanged;
                cbConnection2.ComboBox.SelectionChangeCommitted += cbConnection_SelectedIndexChanged;
                var configValues = MainConfiguration.GetConfigValues();
                configValues.Add(new ConfigValue("XML_File", ""));


                configValues.ForEach(cf => cbConnection.ComboBox.Items.Add(cf));
                configValues.ForEach(cf => cbConnection2.ComboBox.Items.Add(cf));

                // cbConnection.ComboBox.DataSource = dataSource;
                cbConnection.ComboBox.DisplayMember = "ConfigName";
                //cbConnection2.ComboBox.DataSource = dataSource;
                cbConnection2.ComboBox.DisplayMember = "ConfigName";
            }
            catch (Exception exc)
            {
                UIHelper.TreatException(exc);
            }
        }
Example #2
0
 private void LoadConfigurations()
 {
     cbEndPointAddress.DataSource    = MainConfiguration.GetConfigValues();
     cbEndPointAddress.DisplayMember = "ConfigName";
 }