/// <summary>
        /// Service start
        /// </summary>
        protected override void Start()
        {
            //
            // Add service specific initialization here
            //

            base.Start();


            WinFormsServicePort.Post(new RunForm(() =>
            {
                _entityWinForm = new EntityUIForm(TaskQueue);
                _entityWinForm.Show();
                _entityWinForm.TopMost = true;
                _entityWinForm.TopMost = false;
                return(_entityWinForm);
            }));
        }
Example #2
0
        private void Btn_AddTerrainClick(object sender, EventArgs e)
        {
            try
            {

                EntityUIForm lightobj = new EntityUIForm();
                EntityUIForm skyobj = new EntityUIForm();

                TerrainEntity heightfield = new TerrainEntity(HeightBox.Text, MeshBox.Text,
                                                    new MaterialProperties("ground", 0.2f, 1.0f, 0.2f));
                var light = lightobj.CreateEntity(new Vector3(), null, EntityUIForm.Entities.LightSourceEntity);
                var sky = skyobj.CreateEntity(new Vector3(), null, EntityUIForm.Entities.SkyDomeEntity);

                SimulationEngine.GlobalInstancePort.Insert(heightfield);
                SimulationEngine.GlobalInstancePort.Insert(light);

            }
            catch
            {
            }
        }
Example #3
0
 //Event Raised Listview 4
 private void Btn_CustomizeBot4Click(object sender, EventArgs e)
 {
     EntityUIForm form4 = new EntityUIForm();
     form4.ShowDialog();
     form4.Event += new EventHandler<StringEventArgs>(form4_Event);
 }
Example #4
0
 //Event Raised Listview 3
 private void Btn_CustomizeBot3Click(object sender, EventArgs e)
 {
     EntityUIForm form3 = new EntityUIForm();
     form3.Show();
     form3.Event += new EventHandler<StringEventArgs>(form3_Event);
 }