private void LoadAtomics_Click(object sender, EventArgs e) { atomicRT.AtomicsPath = AtomicsPathTextbox.Text; try { Dictionary <string, string> keyValues = atomicRT.ParseWindowsIndex(); AtomicListBox.BeginUpdate(); AtomicListBox.Items.Clear(); foreach (KeyValuePair <string, string> valuePair in keyValues) { AtomicListBox.Items.Add(string.Join("\t", valuePair.Key, valuePair.Value)); } AtomicListBox.EndUpdate(); } catch (Exception err) { MessageBox.Show("Error loading atomics: \n\n" + err.ToString()); } }
private void Editor_Load(object sender, EventArgs e) { atomicRT.AtomicsPath = Properties.Settings.Default.main_AtomicPath; if (!string.IsNullOrWhiteSpace(atomicRT.AtomicsPath)) { try { Dictionary <string, string> keyValues = atomicRT.ParseWindowsIndex(); AtomicListBox.BeginUpdate(); AtomicListBox.Items.Clear(); foreach (KeyValuePair <string, string> valuePair in keyValues) { AtomicListBox.Items.Add(string.Join("\t", valuePair.Key, valuePair.Value)); } AtomicListBox.EndUpdate(); } catch (Exception err) { MessageBox.Show("Error loading atomics: \n\n" + err.ToString()); this.Close(); } } }