Exemple #1
0
 private void button12_Click(object sender, EventArgs e)
 {
     Parameters param = new Parameters(tabControl2.SelectedTab.Text);
     param.ShowDialog();
     if (param.Successful)
     {
         String text = "";
         Object[] var = param.ParameterList.ToArray();
         for (int i = 0; i < var.Length; i++)
         {
             Variable v = (Variable)var[i];
             text += text + v.Type + " " + v.Name;
             if (i + 1 < var.Length)
             {
                 text += text + ", ";
             }
         }
         ParameterText.Text = text;
         this.parameters = param.ParameterList;
     }
 }
Exemple #2
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Parameters param = new Parameters(ClassName + ".java");
     param.ShowDialog();
     if (param.Successful)
     {
         this.parameters = param.ParameterList;
         Object[] var = this.parameters.ToArray();
         Parameters.Items.Clear();
         for (int i = 0; i < var.Length; i++)
         {
             Variable v = (Variable)var[i];
             Parameters.Items.Add(v.Type + " : " + v.Name);
         }
     }
 }