예제 #1
0
        private void OnTextureBrowserMessage(TextureBrowserMessage message)
        {
            Action action = () =>
            {
                var dialog = new TextureBrowserWindow(this, message.OptFile);

                if (dialog.ShowDialog() == true)
                {
                    message.TextureName = dialog.TextureName;
                }
                else
                {
                    message.TextureName = null;
                }
            };

            this.Dispatcher.Invoke(action);
        }
예제 #2
0
        private void OnTextureBrowserMessage(TextureBrowserMessage message)
        {
            Action action = () =>
            {
                var dialog = new TextureBrowserWindow(this, message.OptFile);

                if (dialog.ShowDialog() == true)
                {
                    message.TextureName = dialog.TextureName;
                }
                else
                {
                    message.TextureName = null;
                }
            };

            this.Dispatcher.Invoke(action);
        }