Exemplo n.º 1
0
        private void ShowSceneProperties(int sceneId, string name)
        {
            foreach (var window in _app.Windows.Cast <Window>().Where(window => window.GetType() == typeof(ScenePropertiesWindow)))
            {
                window.Activate();
                return;
            }

            var newWindow = new ScenePropertiesWindow(sceneId)
            {
                Owner = _app.ZvsWindow,
                Title = $"Scene '{name}' Properties"
            };

            newWindow.Show();
        }
        private void ShowSceneProperties(int sceneId, string name)
        {
            foreach (var window in _app.Windows.Cast<Window>().Where(window => window.GetType() == typeof(ScenePropertiesWindow)))
            {
                window.Activate();
                return;
            }

            var newWindow = new ScenePropertiesWindow(sceneId)
            {
                Owner = _app.ZvsWindow,
                Title = $"Scene '{name}' Properties"
            };
            newWindow.Show();
        }