추가패치
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using DDUtilityApp.DATA;
|
||||
using DDUtilityApp.LOGPARSER.DATA;
|
||||
using DDUtilityApp.SECS;
|
||||
using JWH;
|
||||
@@ -30,6 +31,11 @@ namespace DDUtilityApp.LOGPARSER.PARSER
|
||||
|
||||
public List<string> Files { get; set; } = new List<string>();
|
||||
|
||||
/// <summary>
|
||||
/// 로그서버 접속정보
|
||||
/// </summary>
|
||||
public Account Account { get; set; } = null;
|
||||
|
||||
public StandardCollection StandardCollection { get; set; } = new StandardCollection();
|
||||
|
||||
public StringBuilder LogString { get; set; } = new StringBuilder();
|
||||
@@ -100,14 +106,14 @@ namespace DDUtilityApp.LOGPARSER.PARSER
|
||||
{
|
||||
}
|
||||
|
||||
public virtual string[] FileSelector(FrmLogParser sender, params string[] args)
|
||||
public virtual LogFile[] FileSelector(FrmLogParser sender, params LogFile[] args)
|
||||
{
|
||||
string directoryName = string.Empty;
|
||||
string fileName = string.Empty;
|
||||
if (args != null && args.Length > 0)
|
||||
{
|
||||
directoryName = Path.GetDirectoryName(args[0]);
|
||||
fileName = Path.GetFileName(args[0]);
|
||||
directoryName = Path.GetDirectoryName(args[0].Name);
|
||||
fileName = Path.GetFileName(args[0].Name);
|
||||
}
|
||||
|
||||
OpenFileDialog dlg = new OpenFileDialog();
|
||||
@@ -116,7 +122,16 @@ namespace DDUtilityApp.LOGPARSER.PARSER
|
||||
dlg.FileName = fileName;
|
||||
|
||||
if (dlg.ShowDialog() == DialogResult.OK)
|
||||
return dlg.FileNames;
|
||||
{
|
||||
List<LogFile> lstFiles = new List<LogFile>();
|
||||
foreach (string name in dlg.FileNames)
|
||||
{
|
||||
FileInfo fileInfo = new FileInfo(name);
|
||||
lstFiles.Add(fileInfo.ToClass<LogFile>());
|
||||
}
|
||||
|
||||
return lstFiles.ToArray();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user