Example #1
0
        private void btn_AddProcedure_Click(object sender, EventArgs e)
        {
            RenderForm.Objects.Clear();
            //frm_AddProcedure frm = new frm_AddProcedure(null, null, null, Operation.AddNew);
            //frm.ShowDialog();
            //if (frm.Tag != null)
            //    this.CreatedProcedure = (Procedure)frm.Tag;
            usrProcedure proc = new usrProcedure(this, null, null, null, Operation.AddNew);

            proc.Location = new Point(5, 115);
            this.Controls.Add(proc);
        }
Example #2
0
        public usrStep(RenderForm parent,usrProcedure brother,Etape prevStep, Etape step,Procedure procedure,Operation operation)
        {
            InitializeComponent();

            pParent = parent;
            Brother = brother;

            this.Step = step;
            this.Procedure = procedure;
            this._Operation = operation;

            this.prevStep = prevStep;
        }
Example #3
0
        public usrStep(RenderForm parent, usrProcedure brother, Etape prevStep, Etape step, Procedure procedure, Operation operation)
        {
            InitializeComponent();

            pParent = parent;
            Brother = brother;

            this.Step       = step;
            this.Procedure  = procedure;
            this._Operation = operation;


            this.prevStep = prevStep;
        }
Example #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            usrProcedure usr = new usrProcedure(this, null, null, null, Operation.AddNew);

            usr.Location = new Point(5, 80);
            this.Controls.Add(usr);

            //Object3d obj3d = new Object3d(6, "Arrows2", "sign",
            //    new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0, 0, 0), new Vector3(1f, 1f, 1f),
            //    m_Device);

            //obj3d.setNb(0);
            //obj3d.LoadMesh();
            //Objects.Add(obj3d);
            this.Text = this.Size.ToString();
            //pic3d.Width--;

            //MessageBox.Show(this._trans_mat.ToString());

            m_Device.Transform.View = Matrix.LookAtLH(
                camera_position, new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f));
        }
Example #5
0
        private void btn_UpdateProcedure_Click(object sender, EventArgs e)
        {
            frm_ListOf frm = new frm_ListOf(Subject.ProcedureSbjct);

            frm.ShowDialog();

            if (frm.Tag != null)
            {
                Procedure proc = (Procedure)frm.Tag;

                foreach (Etape etp in Etape.GetByProcedure(proc.getId()))
                {
                    proc.addEtape(etp);
                    //MessageBox.Show("etp.Objects.count: "+etp.getObjectList().Count,"RenderForm.btn_UpdateProcedure");
                }


                //frm_AddProcedure frmProc = new frm_AddProcedure(proc.getPanne().getTypePanne(), proc.getPanne(), proc, Operation.Update);
                //frmProc.ShowDialog();
                usrProcedure usrproc = new usrProcedure(this, proc.getPanne().getTypePanne(), proc.getPanne(), proc, Operation.Update);
                usrproc.Location = new Point(5, 115);
                this.Controls.Add(usrproc);
            }
        }
Example #6
0
        private void button1_Click(object sender, EventArgs e)
        {
            usrProcedure usr = new usrProcedure(this, null, null, null, Operation.AddNew);
            usr.Location = new Point(5, 80);
            this.Controls.Add(usr);

            //Object3d obj3d = new Object3d(6, "Arrows2", "sign",
            //    new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0, 0, 0), new Vector3(1f, 1f, 1f),
            //    m_Device);

            //obj3d.setNb(0);
            //obj3d.LoadMesh();
            //Objects.Add(obj3d);
            this.Text = this.Size.ToString();
            //pic3d.Width--;

            //MessageBox.Show(this._trans_mat.ToString());

            m_Device.Transform.View = Matrix.LookAtLH(
                camera_position, new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f));
        }
Example #7
0
        private void btn_UpdateProcedure_Click(object sender, EventArgs e)
        {
            frm_ListOf frm = new frm_ListOf(Subject.ProcedureSbjct);
            frm.ShowDialog();

            if (frm.Tag != null)
            {
                Procedure proc = (Procedure)frm.Tag;

                foreach (Etape etp in Etape.GetByProcedure(proc.getId()))
                {
                    proc.addEtape(etp);
                    //MessageBox.Show("etp.Objects.count: "+etp.getObjectList().Count,"RenderForm.btn_UpdateProcedure");
                }

                //frm_AddProcedure frmProc = new frm_AddProcedure(proc.getPanne().getTypePanne(), proc.getPanne(), proc, Operation.Update);
                //frmProc.ShowDialog();
                usrProcedure usrproc = new usrProcedure(this, proc.getPanne().getTypePanne(), proc.getPanne(), proc, Operation.Update);
                usrproc.Location = new Point(5, 115);
                this.Controls.Add(usrproc);
            }
        }
Example #8
0
 private void btn_AddProcedure_Click(object sender, EventArgs e)
 {
     RenderForm.Objects.Clear();
     //frm_AddProcedure frm = new frm_AddProcedure(null, null, null, Operation.AddNew);
     //frm.ShowDialog();
     //if (frm.Tag != null)
     //    this.CreatedProcedure = (Procedure)frm.Tag;
     usrProcedure proc = new usrProcedure(this, null, null, null, Operation.AddNew);
     proc.Location = new Point(5, 115);
     this.Controls.Add(proc);
 }