- Add tbExceptfile textbox for excluding files from processing - Implement settings persistence with config.ini file - Add FTP upload functionality with complete connection parameters - Enhance file filtering logic with exception handling - Improve UI layout with organized form design - Add password masking for FTP credentials - Include comprehensive error handling and user feedback 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
410 lines
18 KiB
C#
410 lines
18 KiB
C#
namespace UpdateInfoMaker
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <summary>
|
|
/// 필수 디자이너 변수입니다.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// 사용 중인 모든 리소스를 정리합니다.
|
|
/// </summary>
|
|
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form 디자이너에서 생성한 코드
|
|
|
|
/// <summary>
|
|
/// 디자이너 지원에 필요한 메서드입니다.
|
|
/// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.tbCount = new System.Windows.Forms.TextBox();
|
|
this.btRead = new System.Windows.Forms.Button();
|
|
this.btWrite = new System.Windows.Forms.Button();
|
|
this.tbDate = new System.Windows.Forms.TextBox();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.tbExeFileName = new System.Windows.Forms.TextBox();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.tbServerURL = new System.Windows.Forms.TextBox();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.listView1 = new System.Windows.Forms.ListView();
|
|
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.btUpdateFilelist = new System.Windows.Forms.Button();
|
|
this.tbExceptfile = new System.Windows.Forms.TextBox();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.grpftpinfo = new System.Windows.Forms.GroupBox();
|
|
this.tbFTPId = new System.Windows.Forms.TextBox();
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
this.tbFTPServer = new System.Windows.Forms.TextBox();
|
|
this.label7 = new System.Windows.Forms.Label();
|
|
this.tbFTPPW = new System.Windows.Forms.TextBox();
|
|
this.lbpw = new System.Windows.Forms.Label();
|
|
this.tbFTPPort = new System.Windows.Forms.TextBox();
|
|
this.label8 = new System.Windows.Forms.Label();
|
|
this.chkFTPPassive = new System.Windows.Forms.CheckBox();
|
|
this.tbUploadFile = new System.Windows.Forms.Button();
|
|
this.tbFTPPath = new System.Windows.Forms.TextBox();
|
|
this.label9 = new System.Windows.Forms.Label();
|
|
this.grpftpinfo.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(20, 20);
|
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(54, 18);
|
|
this.label1.TabIndex = 0;
|
|
this.label1.Text = "count";
|
|
//
|
|
// tbCount
|
|
//
|
|
this.tbCount.Location = new System.Drawing.Point(100, 15);
|
|
this.tbCount.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.tbCount.Name = "tbCount";
|
|
this.tbCount.Size = new System.Drawing.Size(120, 28);
|
|
this.tbCount.TabIndex = 1;
|
|
//
|
|
// btRead
|
|
//
|
|
this.btRead.Location = new System.Drawing.Point(450, 60);
|
|
this.btRead.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btRead.Name = "btRead";
|
|
this.btRead.Size = new System.Drawing.Size(120, 35);
|
|
this.btRead.TabIndex = 2;
|
|
this.btRead.Text = "Read INF";
|
|
this.btRead.UseVisualStyleBackColor = true;
|
|
this.btRead.Click += new System.EventHandler(this.btRead_Click);
|
|
//
|
|
// btWrite
|
|
//
|
|
this.btWrite.Location = new System.Drawing.Point(580, 60);
|
|
this.btWrite.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btWrite.Name = "btWrite";
|
|
this.btWrite.Size = new System.Drawing.Size(120, 35);
|
|
this.btWrite.TabIndex = 2;
|
|
this.btWrite.Text = "Write INF";
|
|
this.btWrite.UseVisualStyleBackColor = true;
|
|
this.btWrite.Click += new System.EventHandler(this.btWrite_Click);
|
|
//
|
|
// tbDate
|
|
//
|
|
this.tbDate.Location = new System.Drawing.Point(100, 50);
|
|
this.tbDate.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.tbDate.Name = "tbDate";
|
|
this.tbDate.Size = new System.Drawing.Size(120, 28);
|
|
this.tbDate.TabIndex = 4;
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(20, 55);
|
|
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(43, 18);
|
|
this.label2.TabIndex = 3;
|
|
this.label2.Text = "date";
|
|
//
|
|
// tbExeFileName
|
|
//
|
|
this.tbExeFileName.Location = new System.Drawing.Point(100, 120);
|
|
this.tbExeFileName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.tbExeFileName.Name = "tbExeFileName";
|
|
this.tbExeFileName.Size = new System.Drawing.Size(200, 28);
|
|
this.tbExeFileName.TabIndex = 8;
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(20, 125);
|
|
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(38, 18);
|
|
this.label3.TabIndex = 7;
|
|
this.label3.Text = "exe";
|
|
//
|
|
// tbServerURL
|
|
//
|
|
this.tbServerURL.Location = new System.Drawing.Point(100, 85);
|
|
this.tbServerURL.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.tbServerURL.Name = "tbServerURL";
|
|
this.tbServerURL.Size = new System.Drawing.Size(200, 28);
|
|
this.tbServerURL.TabIndex = 6;
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Location = new System.Drawing.Point(20, 90);
|
|
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(60, 18);
|
|
this.label4.TabIndex = 5;
|
|
this.label4.Text = "server";
|
|
//
|
|
// listView1
|
|
//
|
|
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
|
this.columnHeader1,
|
|
this.columnHeader2});
|
|
this.listView1.FullRowSelect = true;
|
|
this.listView1.GridLines = true;
|
|
this.listView1.HideSelection = false;
|
|
this.listView1.Location = new System.Drawing.Point(20, 170);
|
|
this.listView1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.listView1.Name = "listView1";
|
|
this.listView1.Size = new System.Drawing.Size(730, 220);
|
|
this.listView1.TabIndex = 9;
|
|
this.listView1.UseCompatibleStateImageBehavior = false;
|
|
this.listView1.View = System.Windows.Forms.View.Details;
|
|
//
|
|
// columnHeader1
|
|
//
|
|
this.columnHeader1.Text = "Name";
|
|
this.columnHeader1.Width = 250;
|
|
//
|
|
// columnHeader2
|
|
//
|
|
this.columnHeader2.Text = "Size";
|
|
//
|
|
// btUpdateFilelist
|
|
//
|
|
this.btUpdateFilelist.Location = new System.Drawing.Point(580, 110);
|
|
this.btUpdateFilelist.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btUpdateFilelist.Name = "btUpdateFilelist";
|
|
this.btUpdateFilelist.Size = new System.Drawing.Size(120, 35);
|
|
this.btUpdateFilelist.TabIndex = 10;
|
|
this.btUpdateFilelist.Text = "Update Files";
|
|
this.btUpdateFilelist.UseVisualStyleBackColor = true;
|
|
this.btUpdateFilelist.Click += new System.EventHandler(this.btUpdateFilelist_Click);
|
|
//
|
|
// tbExceptfile
|
|
//
|
|
this.tbExceptfile.Location = new System.Drawing.Point(450, 15);
|
|
this.tbExceptfile.Margin = new System.Windows.Forms.Padding(4);
|
|
this.tbExceptfile.Name = "tbExceptfile";
|
|
this.tbExceptfile.Size = new System.Drawing.Size(300, 28);
|
|
this.tbExceptfile.TabIndex = 12;
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.AutoSize = true;
|
|
this.label5.Location = new System.Drawing.Point(350, 20);
|
|
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(84, 18);
|
|
this.label5.TabIndex = 11;
|
|
this.label5.Text = "exceptfile";
|
|
//
|
|
// grpftpinfo
|
|
//
|
|
this.grpftpinfo.Controls.Add(this.tbFTPPath);
|
|
this.grpftpinfo.Controls.Add(this.label9);
|
|
this.grpftpinfo.Controls.Add(this.tbUploadFile);
|
|
this.grpftpinfo.Controls.Add(this.chkFTPPassive);
|
|
this.grpftpinfo.Controls.Add(this.tbFTPPort);
|
|
this.grpftpinfo.Controls.Add(this.label8);
|
|
this.grpftpinfo.Controls.Add(this.tbFTPPW);
|
|
this.grpftpinfo.Controls.Add(this.lbpw);
|
|
this.grpftpinfo.Controls.Add(this.tbFTPId);
|
|
this.grpftpinfo.Controls.Add(this.label6);
|
|
this.grpftpinfo.Controls.Add(this.tbFTPServer);
|
|
this.grpftpinfo.Controls.Add(this.label7);
|
|
this.grpftpinfo.Location = new System.Drawing.Point(20, 410);
|
|
this.grpftpinfo.Name = "grpftpinfo";
|
|
this.grpftpinfo.Size = new System.Drawing.Size(730, 150);
|
|
this.grpftpinfo.TabIndex = 13;
|
|
this.grpftpinfo.TabStop = false;
|
|
this.grpftpinfo.Text = "FTP Information";
|
|
//
|
|
// tbFTPId
|
|
//
|
|
this.tbFTPId.Location = new System.Drawing.Point(80, 60);
|
|
this.tbFTPId.Margin = new System.Windows.Forms.Padding(4);
|
|
this.tbFTPId.Name = "tbFTPId";
|
|
this.tbFTPId.Size = new System.Drawing.Size(150, 28);
|
|
this.tbFTPId.TabIndex = 8;
|
|
//
|
|
// label6
|
|
//
|
|
this.label6.AutoSize = true;
|
|
this.label6.Location = new System.Drawing.Point(15, 65);
|
|
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label6.Name = "label6";
|
|
this.label6.Size = new System.Drawing.Size(21, 18);
|
|
this.label6.TabIndex = 7;
|
|
this.label6.Text = "ID";
|
|
//
|
|
// tbFTPServer
|
|
//
|
|
this.tbFTPServer.Location = new System.Drawing.Point(80, 25);
|
|
this.tbFTPServer.Margin = new System.Windows.Forms.Padding(4);
|
|
this.tbFTPServer.Name = "tbFTPServer";
|
|
this.tbFTPServer.Size = new System.Drawing.Size(150, 28);
|
|
this.tbFTPServer.TabIndex = 6;
|
|
//
|
|
// label7
|
|
//
|
|
this.label7.AutoSize = true;
|
|
this.label7.Location = new System.Drawing.Point(15, 30);
|
|
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label7.Name = "label7";
|
|
this.label7.Size = new System.Drawing.Size(60, 18);
|
|
this.label7.TabIndex = 5;
|
|
this.label7.Text = "Server";
|
|
//
|
|
// tbFTPPW
|
|
//
|
|
this.tbFTPPW.Location = new System.Drawing.Point(290, 60);
|
|
this.tbFTPPW.Margin = new System.Windows.Forms.Padding(4);
|
|
this.tbFTPPW.Name = "tbFTPPW";
|
|
this.tbFTPPW.Size = new System.Drawing.Size(150, 28);
|
|
this.tbFTPPW.TabIndex = 10;
|
|
this.tbFTPPW.PasswordChar = '*';
|
|
//
|
|
// lbpw
|
|
//
|
|
this.lbpw.AutoSize = true;
|
|
this.lbpw.Location = new System.Drawing.Point(245, 65);
|
|
this.lbpw.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbpw.Name = "lbpw";
|
|
this.lbpw.Size = new System.Drawing.Size(32, 18);
|
|
this.lbpw.TabIndex = 9;
|
|
this.lbpw.Text = "PW";
|
|
//
|
|
// tbFTPPort
|
|
//
|
|
this.tbFTPPort.Location = new System.Drawing.Point(290, 25);
|
|
this.tbFTPPort.Margin = new System.Windows.Forms.Padding(4);
|
|
this.tbFTPPort.Name = "tbFTPPort";
|
|
this.tbFTPPort.Size = new System.Drawing.Size(80, 28);
|
|
this.tbFTPPort.TabIndex = 12;
|
|
this.tbFTPPort.Text = "21";
|
|
//
|
|
// label8
|
|
//
|
|
this.label8.AutoSize = true;
|
|
this.label8.Location = new System.Drawing.Point(245, 30);
|
|
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label8.Name = "label8";
|
|
this.label8.Size = new System.Drawing.Size(40, 18);
|
|
this.label8.TabIndex = 11;
|
|
this.label8.Text = "Port";
|
|
//
|
|
// chkFTPPassive
|
|
//
|
|
this.chkFTPPassive.AutoSize = true;
|
|
this.chkFTPPassive.Location = new System.Drawing.Point(460, 25);
|
|
this.chkFTPPassive.Name = "chkFTPPassive";
|
|
this.chkFTPPassive.Size = new System.Drawing.Size(150, 22);
|
|
this.chkFTPPassive.TabIndex = 13;
|
|
this.chkFTPPassive.Text = "Passive Mode";
|
|
this.chkFTPPassive.UseVisualStyleBackColor = true;
|
|
//
|
|
// tbUploadFile
|
|
//
|
|
this.tbUploadFile.Location = new System.Drawing.Point(460, 55);
|
|
this.tbUploadFile.Margin = new System.Windows.Forms.Padding(4);
|
|
this.tbUploadFile.Name = "tbUploadFile";
|
|
this.tbUploadFile.Size = new System.Drawing.Size(150, 70);
|
|
this.tbUploadFile.TabIndex = 14;
|
|
this.tbUploadFile.Text = "Upload Files";
|
|
this.tbUploadFile.UseVisualStyleBackColor = true;
|
|
this.tbUploadFile.Click += new System.EventHandler(this.tbUploadFile_Click);
|
|
//
|
|
// tbFTPPath
|
|
//
|
|
this.tbFTPPath.Location = new System.Drawing.Point(100, 95);
|
|
this.tbFTPPath.Margin = new System.Windows.Forms.Padding(4);
|
|
this.tbFTPPath.Name = "tbFTPPath";
|
|
this.tbFTPPath.Size = new System.Drawing.Size(340, 28);
|
|
this.tbFTPPath.TabIndex = 16;
|
|
this.tbFTPPath.Text = "/home/ftpgloria/unimarc";
|
|
//
|
|
// label9
|
|
//
|
|
this.label9.AutoSize = true;
|
|
this.label9.Location = new System.Drawing.Point(15, 100);
|
|
this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label9.Name = "label9";
|
|
this.label9.Size = new System.Drawing.Size(82, 18);
|
|
this.label9.TabIndex = 15;
|
|
this.label9.Text = "Root Path";
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 18F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(780, 580);
|
|
this.Controls.Add(this.grpftpinfo);
|
|
this.Controls.Add(this.tbExceptfile);
|
|
this.Controls.Add(this.label5);
|
|
this.Controls.Add(this.btUpdateFilelist);
|
|
this.Controls.Add(this.listView1);
|
|
this.Controls.Add(this.tbExeFileName);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.tbServerURL);
|
|
this.Controls.Add(this.label4);
|
|
this.Controls.Add(this.tbDate);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.btWrite);
|
|
this.Controls.Add(this.btRead);
|
|
this.Controls.Add(this.tbCount);
|
|
this.Controls.Add(this.label1);
|
|
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.Name = "Form1";
|
|
this.Text = "Form1";
|
|
this.grpftpinfo.ResumeLayout(false);
|
|
this.grpftpinfo.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.TextBox tbCount;
|
|
private System.Windows.Forms.Button btRead;
|
|
private System.Windows.Forms.Button btWrite;
|
|
private System.Windows.Forms.TextBox tbDate;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.TextBox tbExeFileName;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.TextBox tbServerURL;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.ListView listView1;
|
|
private System.Windows.Forms.ColumnHeader columnHeader1;
|
|
private System.Windows.Forms.ColumnHeader columnHeader2;
|
|
private System.Windows.Forms.Button btUpdateFilelist;
|
|
private System.Windows.Forms.TextBox tbExceptfile;
|
|
private System.Windows.Forms.Label label5;
|
|
private System.Windows.Forms.GroupBox grpftpinfo;
|
|
private System.Windows.Forms.TextBox tbFTPId;
|
|
private System.Windows.Forms.Label label6;
|
|
private System.Windows.Forms.TextBox tbFTPServer;
|
|
private System.Windows.Forms.Label label7;
|
|
private System.Windows.Forms.TextBox tbFTPPort;
|
|
private System.Windows.Forms.Label label8;
|
|
private System.Windows.Forms.TextBox tbFTPPW;
|
|
private System.Windows.Forms.Label lbpw;
|
|
private System.Windows.Forms.CheckBox chkFTPPassive;
|
|
private System.Windows.Forms.Button tbUploadFile;
|
|
private System.Windows.Forms.TextBox tbFTPPath;
|
|
private System.Windows.Forms.Label label9;
|
|
}
|
|
}
|
|
|