Exemplo n.º 1
0
        private void UpdateLights()
        {
            var currentView = CurrentView;

            if (currentView == null)
            {
                _lights.Clear();
            }
            else
            {
                // Transfer the list en bloc, thereby updating the list box without loosing the current selection
                _lights.SetMany(currentView.Scene.Lights);
            }
        }
Exemplo n.º 2
0
        private void UpdateShaders()
        {
            var currentView = CurrentView;

            if (currentView == null)
            {
                _shaders.Clear();
            }
            else
            {
                // Transfer the list en bloc, thereby updating the list box without loosing the current selection
                _shaders.SetMany(currentView.PostShaders);
            }
        }