Load() public method

public Load ( string xml ) : void
xml string
return void
Ejemplo n.º 1
0
        private void btRefresh_Click(object sender, EventArgs e)
        {
            try
            {
                var xmlPath = Directory.GetCurrentDirectory() + @"\SelfServiceConfig.xml";
                _selfServiceConfig.Load(xmlPath);

                LoadBuilds();
            }
            catch (Exception ex)
            {
                MessageBox.Show("ERROR: " + ex.Message);
            }
        }
Ejemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                dgvBuilds.AutoGenerateColumns = false;
                dgvBuilds.SelectionChanged   += DgvBuilds_SelectionChanged;
                dgvBuilds.SelectionMode       = DataGridViewSelectionMode.FullRowSelect;

                xmlPath = Directory.GetCurrentDirectory() + @"\SelfServiceConfig.xml";

                _selfServiceConfig = new SelfServiceConfig();
                _selfServiceConfig.Load(xmlPath);

                LoadBuilds();
            }
            catch (Exception ex)
            {
                MessageBox.Show("ERROR: " + ex.Message);
            }
        }