Exemplo n.º 1
0
        void resultset_GetTempFilename(object sender, GetTempFilenameEventArgs e)
        {
#if NO
            while (true)
            {
                string strFilename = PathUtil.MergePath(this.m_strTempDir, Guid.NewGuid().ToString());
                if (File.Exists(strFilename) == false)
                {
                    using (FileStream s = File.Create(strFilename))
                    {
                    }

                    e.TempFilename = strFilename;
                    return;
                }
            }
#endif
            e.TempFilename = GetTempFileName();
        }
Exemplo n.º 2
0
 void resultset_GetTempFilename(object sender, GetTempFilenameEventArgs e)
 {
     e.TempFilename = GetTempFileName();
 }
Exemplo n.º 3
0
 void resultset_GetTempFilename(object sender, GetTempFilenameEventArgs e)
 {
     e.TempFilename = GetTempFileName();
 }
Exemplo n.º 4
0
        void resultset_GetTempFilename(object sender, GetTempFilenameEventArgs e)
        {
#if NO
            while (true)
            {
                string strFilename = PathUtil.MergePath(this.m_strTempDir, Guid.NewGuid().ToString());
                if (File.Exists(strFilename) == false)
                {
                    using (FileStream s = File.Create(strFilename))
                    {
                    }

                    e.TempFilename = strFilename;
                    return;
                }
            }
#endif
            e.TempFilename = GetTempFileName();
        }