using DevExpress.Data.Helpers; using DevExpress.XtraBars; using DevExpress.XtraBars.Navigation; using System; using System.Net; using System.Net.Sockets; using System.Runtime.InteropServices; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml.Linq; using System.IO; using System.Diagnostics; using SystemX.Net; using SystemX.Common; using SystemX.Net.BaseProtocol; using SystemX.Net.Comm; using SystemX.Net.Schedule; using SystemX.Net.DB.LogProcess; using SystemX.Common.Serialization; using SystemX.Common.Archive; using System.Threading.Tasks; //using SystemX.Common.Protocol.SIA; using static SystemX.Net.Platform.Common.Util.LogMessage; using SystemX.Net.Platform.Common.ExtensionMethods; using SystemX.Net.Platform.SystemX.Common; namespace SystemX.Net.MiddlewareUI { public partial class MainForm : DevExpress.XtraBars.FluentDesignSystem.FluentDesignForm { /* private string GetFileName(int iPos, LogMappedPacket GetMappedInfo, string strCreateName, string strSubName) { Random randNumber = new Random(); string strFileName = strCreateName; if (GetMappedInfo.objOptionFileName[0].Data.CompareTo("-") == 0) strFileName += @strSubName + @randNumber.Next().ToString() + @GetMappedInfo.objOptionFileExtension[0].Data; else strFileName += @GetMappedInfo.objOptionFileName[0].Data + @GetMappedInfo.objOptionFileExtension[0].Data; if (File.Exists(strFileName) == true) { while (true) { strFileName = strCreateName; if (GetMappedInfo.objOptionFileName[0].Data.CompareTo("-") == 0) strFileName += @strSubName + @randNumber.Next().ToString() + @GetMappedInfo.objOptionFileExtension[0].Data; else strFileName += @GetMappedInfo.objOptionFileName[0].Data + "_" + @randNumber.Next().ToString() + @GetMappedInfo.objOptionFileExtension[0].Data; if (File.Exists(strFileName) == false) break; } } return strFileName; } */ } }