Ejemplo n.º 1
0
        private string CreateTemporaryFile()
        {
            string path = System.IO.Path.GetTempPath();

            path = path + "\\" + Guid.NewGuid().ToString() + ".xml";

            _service.SaveDtoRendiconto(path);

            return(path);
        }
Ejemplo n.º 2
0
        public void CreateTransferFile()
        {
            try
            {
                IOpenFileClass o = _view.GetFolderBrowserDialog();

                if (o.ShowAndContinue())
                {
                    string path = o.GetFileName();

                    path = path + "\\RendicontoDaTrasferire.xml";

                    _service.SaveDtoRendiconto(path);

                    _view.GetSimpleMessageNotificator().Show("File salvato in: " + path, "Info", MessageType.Information);
                }
            }
            catch (Exception ex)
            {
                _view.GetSimpleMessageNotificator().Show(ex.Message, "Errore", MessageType.Error);
            }
        }