示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            string str = treeView1.SelectedNode.Text;
            int    i   = Convert.ToInt32(str.Length == 5 ? str.Substring(1, 1) : str.Substring(1, 2));

            if (i == 1)
            {
                FrmStrengthCalculation1 childFrame = new FrmStrengthCalculation1(i);
                childFrame.Show();
            }
            if (i == 2)
            {
                FrmStrengthCalculation2 childFrame = new FrmStrengthCalculation2(i);
                childFrame.Show();
            }
            if (i == 3)
            {
                FrmStrengthCalculation2 childFrame = new FrmStrengthCalculation2(i);
                childFrame.Show();
            }
            if (i == 4)
            {
                Form19 childFrame = new Form19(i);
                childFrame.Show();
            }
        }
示例#2
0
 private void button2_Click(object sender, EventArgs e)
 {
     string str = treeView1.SelectedNode.Text;
     int i = Convert.ToInt32(str.Length == 5 ? str.Substring(1, 1) : str.Substring(1, 2));
     if (i == 1)
     {
         FrmStrengthCalculation1 childFrame = new FrmStrengthCalculation1(i);
         childFrame.Show();
     }
     if (i == 2)
     {
         FrmStrengthCalculation2 childFrame = new FrmStrengthCalculation2(i);
         childFrame.Show();
     }
     if (i == 3)
     {
         FrmStrengthCalculation2 childFrame = new FrmStrengthCalculation2(i);
         childFrame.Show();
     }
     if (i == 4)
     {
         Form19 childFrame = new Form19(i);
         childFrame.Show();
     }
 }
示例#3
0
        private void button2_Click(object sender, EventArgs e)
        {
            FrmStrengthCalculation1 frm = new FrmStrengthCalculation1();

            frm.Show();
        }
 private void button2_Click(object sender, EventArgs e)
 {
     FrmStrengthCalculation1 frm = new FrmStrengthCalculation1();
     frm.Show();
 }