コード例 #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);
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: 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;
            }
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: 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;
            }
        }