Example #1
0
        /// <summary>
        /// Este método se llama antes de comenzar a procesar los elementos.
        /// </summary>
        protected override bool ComenzóAProcesar()
        {
            // Ask for the file.
            string file = myOpenFileDialogService.OpenFileDialog();

            // Return early if the user cancels.
            if (string.IsNullOrEmpty(file))
            {
                return(false);
            }

            var sourceMapManager = new ManejadorDeMapa(EscuchadorDeEstatus);
            var reader           = new LectorDeFormatoPolish(sourceMapManager, file);

            mySourceElements = reader.ElementosDelMapa;
            return(base.ComenzóAProcesar());
        }
Example #2
0
        private void OpenFileDialog()
        {
            string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

            _openFileDialogService.OpenFileDialog(folderPath);
        }