Example #1
0
        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);
        }
Example #2
0
File: Form1.cs Project: hj1980/Mosa
        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;
            }
        }
Example #3
0
File: Form1.cs Project: djlw78/Mosa
        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;
            }
        }