コード例 #1
0
        public MainForm()
        {
            InitializeComponent();

            this.Icon   = Properties.Resources.icon;
            this.Cursor = new Cursor(Properties.Resources.pointer_ptr.GetHicon());

            ol = new ObjectsList(this);

            comboBox1.DataSource    = ol.Collection;
            comboBox1.DisplayMember = "Name";
            comboBox1.ValueMember   = "Id";
        }
コード例 #2
0
        public void DoFinalRenderCalculus(ObjectsList ol, MainForm f, FinalRender r)
        {
            this.ol = ol.Items;

            this.animatronic = ol.Animatronic;
            this.form        = f;
            this.render      = r;

            if (animatronic.FramesNumber == 0 || form.skipanimations.Checked)
            {
                Mode = MODE.RENDER;
            }
            else
            {
                render.Render.Invoke(render.Render.SetMaximum, new object[] { animatronic.FramesNumber });
                Mode = MODE.ANIM;
            }

            this.RunWorkerAsync();
        }
コード例 #3
0
 public void DoScenePreviewCalculus(ObjectsList ol)
 {
     this.ol = ol.Items;
     Mode    = MODE.PREVIEW;
     this.RunWorkerAsync();
 }