예제 #1
0
 internal SceneController()
 {
     SceneForm        = new SceneForm();
     Scene            = new Scene(this);
     ClockController  = new ClockController(this);
     CommandProcessor = new CommandProcessor(this);
     new FullScreenController(this);
     JsonController         = new JsonController(this);
     PropertyGridController = new PropertyGridController(this);
     RenderController       = new RenderController(this);
     TraceTableController   = new TraceTableController(this);
     ConnectAll(true);
 }
예제 #2
0
        private static void TgCollectionEditor_CollectionFormLoad(object sender, EventArgs e)
        {
            if (sender is Form form)
            {
                form.Size = new Size(720, 540);
                form.Text = "Properties";
                var owner = form.Owner;
                if (owner is HostForm)
                {
                    owner = owner.Owner;
                }
                if (owner is SceneForm sceneForm)
                {
                    form.Font       = sceneForm.Font;
                    SceneController = AppController.SceneControllers
                                      .FirstOrDefault(p => p.SceneForm == sceneForm);
                }
            }
            var propertyGrid = FindPropertyGrid(sender);

            PropertyGridController.HidePropertyPagesButton(propertyGrid);
            propertyGrid.HelpVisible = true;
            PropertyGridController.InitShowSystemRO((TgPropertyGridAdapter)propertyGrid.Tag);
        }