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); } }
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); } }