Example #1
0
        private void refreshButton_Click(object sender, EventArgs e)
        {
            if (cbMethods.SelectedItem == null)
            {
                tbResult.Lines = new string[0];
                return;
            }

            string method = cbMethods.SelectedItem.ToString();
            string stage  = string.Empty;

            if (cbStages.SelectedItem != null)
            {
                stage = cbStages.SelectedItem.ToString();
            }

            string label = string.Empty;

            if (cbLabels.SelectedItem != null)
            {
                label = cbLabels.SelectedItem.ToString();
            }

            if (!cbLabel.Checked)
            {
                label = string.Empty;
            }

            if (!cbStage.Checked)
            {
                stage = string.Empty;
            }

            List <string> lines = output.GetText(method, stage, label, removeNextprevInformationToolStripMenuItem.Checked, spaceAfterBlockToolStripMenuItem.Checked);

            string[] final = new string[lines.Count];

            for (int i = 0; i < lines.Count; i++)
            {
                final[i] = lines[i];
            }

            tbResult.Lines = final;
        }
Example #2
0
File: Form1.cs Project: djlw78/Mosa
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            if (cbMethods.SelectedItem == null)
            {
                tbResult.Lines = new string[0];
                return;
            }

            string method = cbMethods.SelectedItem.ToString();
            string stage  = string.Empty;

            if (cbStages.SelectedItem != null)
            {
                stage = cbStages.SelectedItem.ToString();
            }

            string label = string.Empty;

            if (cbLabels.SelectedItem != null)
            {
                label = cbLabels.SelectedItem.ToString();
            }

            if (!cbLabel.Checked)
            {
                label = string.Empty;
            }

            if (!cbStage.Checked)
            {
                stage = string.Empty;
            }

            List <string> lines = output.GetText(method, stage, label);

            string[] final = new string[lines.Count];

            for (int i = 0; i < lines.Count; i++)
            {
                final[i] = lines[i];
            }

            tbResult.Lines = final;
        }