Ejemplo n.º 1
0
        public virtual bool saveFile()
        {
            bool saveSuccessful = false;


            InvalidPathException exPath = new InvalidPathException("Fehler");

            exPath.Data.Add("Time", DateTime.Now);

            OnInvaildPath(new InvalidPathEventArgs("", "File", exPath));


            return(saveSuccessful);
        }
Ejemplo n.º 2
0
        public virtual void getFilePath()
        {
            try
            {
                string currentDir = Environment.CurrentDirectory;

                filePath += currentDir + folderTeFile;

                if (!Directory.Exists(filePath))
                {
                    Directory.CreateDirectory(filePath);
                }
            }

            catch (Exception ex)
            {
                // MessageBox.Show(String.Format("Beim überprüfen der Struktur vom Verzeichnis ist ein Fehler aufgetreten.{0}Meldung: {1}",Environment.NewLine, ex.Message));

                InvalidPathException exPath = new InvalidPathException("Fehler");
                exPath.Data.Add("Time", DateTime.Now);

                OnInvaildPath(new InvalidPathEventArgs("", "File", ex));
            }
        }