Пример #1
0
        public TextureEditController(TextureEditView view)
        {
            _view = view;
            _view.ExportClicked += View_ExportClicked;
            _view.ImportClicked += View_ImportClicked;

            _textureViewController = new TextureViewController(view.TextureView);
        }
Пример #2
0
        public TextureEditController(TextureEditView view)
        {
            _view = view;
            _view.ExportClicked += View_ExportClicked;
            _view.ImportClicked += View_ImportClicked;

            _textureViewController = new TextureViewController(view.TextureView);
        }
Пример #3
0
        protected void ShowForm(File file, TextureFile textureFile)
        {
            var view = new TextureEditView();
            
            var controller = new TextureEditController(view);
            controller.TextureFile = textureFile;

            using (var form = new EditorForm())
            {
                form.SetFilename(file.Name);
                form.SetControl(view);

                controller.SaveAndClose += ((sender, e) => SaveAndClose(form, textureFile, file));

                form.ShowDialog();
            }

            textureFile.Dispose();
        }