예제 #1
0
        public void Process(AnimationFragment mountFragment, AnimationFragment riderFragment)
        {
            var resultInfo = new ErrorListViewModel.ErrorList();

            _mountFragment = mountFragment;
            _riderFragment = riderFragment;

            CreateFiles();
            CreateFragmentAndAnimations(resultInfo);
            SaveFiles();

            ErrorListWindow.ShowDialog("Mount creation result", resultInfo, false);
        }
예제 #2
0
        public void CompileCode()
        {
            string fileLocation;

            if (AskForFileLocation(out fileLocation))
            {
                List <string> errors = new List <string>();
                CodeCompiler.CompileCode(this._codeFile.ReferenceAssemblies.ToArray(), fileLocation, this._codeFile.Code, true, out errors);
                if (errors.Count > 0)
                {
                    ErrorListWindow errorWindow = new ErrorListWindow(errors);
                    errorWindow.ShowDialog();
                }
            }
        }