Exemplo n.º 1
0
        private void CBE_id_SelectedIndexChanged(object sender, EventArgs e)
        {
            Point = db.GetCutInfor(Trajname, CBE_id.SelectedIndex + 1, ref MovC, ref Para, ref IsMovC);
            TP_MovC.PageVisible = IsMovC;
            if (Point != null)
            {
                TE_O1.Text = Point[0].ToString();
                TE_O2.Text = Point[1].ToString();
                TE_O3.Text = Point[2].ToString();
                TE_O4.Text = Point[3].ToString();
                TE_O5.Text = Point[4].ToString();
                TE_O6.Text = Point[5].ToString();

                TE_F1.Text = MovC[0].ToString();
                TE_F2.Text = MovC[1].ToString();
                TE_F3.Text = MovC[2].ToString();
                TE_F4.Text = MovC[3].ToString();
                TE_F5.Text = MovC[4].ToString();
                TE_F6.Text = MovC[5].ToString();


                TE_A1.Text = Para[0].ToString();
                TE_A2.Text = Para[1].ToString();
                TE_A3.Text = Para[2].ToString();
                //  TE_A4.Text = Para[3].ToString();
                //  TE_A5.Text = Para[4].ToString();
                TE_A4.SelectedIndex = Math.Min((int)Para[3], 50);
                TE_A5.SelectedIndex = Math.Min((int)Para[4], 50);
            }
        }
Exemplo n.º 2
0
        private void CBE_id_SelectedIndexChanged(object sender, EventArgs e)
        {
            Point = db.GetCutInfor(Trajname, CBE_id.SelectedIndex + 1, ref MovC, ref Para, ref IsMovC);
            if (Point != null)
            {
                TE_O1.Text = Point[0].ToString();
                TE_O2.Text = Point[1].ToString();
                TE_O3.Text = Point[2].ToString();
                TE_O4.Text = Point[3].ToString();
                TE_O5.Text = Point[4].ToString();
                TE_O6.Text = Point[5].ToString();

                TE_A1.Text = Para[0].ToString();
                TE_A2.Text = Para[1].ToString();
            }
        }