private void UpdateText(object sender, EventArgs e) { cbMethods.Items.Clear(); foreach (string item in output.GetMethods()) { cbMethods.Items.Add(item); } cbMethods.SelectedIndex = 0; cbMethods_SelectionChangeCommitted(sender, e); }
private void button1_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { output = new Output(openFileDialog1.FileName); tbSource.Lines = output.Lines; cbMethods.Items.Clear(); foreach (string item in output.GetMethods()) cbMethods.Items.Add(item); cbMethods.SelectedIndex = 0; cbMethods_SelectionChangeCommitted(sender, e); lbStatus.Text = openFileDialog1.FileName; } }
private void button1_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { output = new Output(openFileDialog1.FileName); tbSource.Lines = output.Lines; cbMethods.Items.Clear(); foreach (string item in output.GetMethods()) { cbMethods.Items.Add(item); } cbMethods.SelectedIndex = 0; cbMethods_SelectionChangeCommitted(sender, e); lbStatus.Text = openFileDialog1.FileName; } }