From 2f68a949c53b9fb4b37dca582d588710d219f437 Mon Sep 17 00:00:00 2001 From: Falcon <12919280+falconfly@user.noreply.gitee.com> Date: Wed, 24 Jul 2024 14:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=9D=A1=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E9=99=84=E4=BB=B6=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CalendarNotepad/WorkMain.Designer.cs | 27 +++++++++++++++++++++++---- CalendarNotepad/WorkMain.cs | 4 ++++ CalendarNotepad/WorkMain.resx | 9 +++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/CalendarNotepad/WorkMain.Designer.cs b/CalendarNotepad/WorkMain.Designer.cs index f844605..38a2c9a 100644 --- a/CalendarNotepad/WorkMain.Designer.cs +++ b/CalendarNotepad/WorkMain.Designer.cs @@ -70,6 +70,8 @@ panel2 = new Panel(); panel3 = new Panel(); OpenFileDlg = new OpenFileDialog(); + tsb_loadin = new ToolStripButton(); + toolStripSeparator1 = new ToolStripSeparator(); tabControl1.SuspendLayout(); tpWorkManage.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit(); @@ -337,7 +339,7 @@ // splitContainer2.Panel2.Controls.Add(FileListView); splitContainer2.Size = new Size(465,423); - splitContainer2.SplitterDistance = 355; + splitContainer2.SplitterDistance = 328; splitContainer2.TabIndex = 10; // // rtbMsg @@ -346,7 +348,7 @@ rtbMsg.EnableAutoDragDrop = true; rtbMsg.Location = new Point(0,25); rtbMsg.Name = "rtbMsg"; - rtbMsg.Size = new Size(465,330); + rtbMsg.Size = new Size(465,303); rtbMsg.TabIndex = 7; rtbMsg.Text = ""; rtbMsg.LinkClicked += rtbMsg_LinkClicked; @@ -354,7 +356,7 @@ // // toolStrip1 // - toolStrip1.Items.AddRange(new ToolStripItem[] { tsp_Copy,tsb_palse }); + toolStrip1.Items.AddRange(new ToolStripItem[] { tsp_Copy,tsb_palse,toolStripSeparator1,tsb_loadin }); toolStrip1.Location = new Point(0,0); toolStrip1.Name = "toolStrip1"; toolStrip1.Size = new Size(465,25); @@ -389,7 +391,7 @@ FileListView.GridLines = true; FileListView.Location = new Point(0,0); FileListView.Name = "FileListView"; - FileListView.Size = new Size(465,64); + FileListView.Size = new Size(465,91); FileListView.TabIndex = 9; FileListView.UseCompatibleStateImageBehavior = false; FileListView.View = View.Details; @@ -555,6 +557,21 @@ // OpenFileDlg.Multiselect = true; // + // tsb_loadin + // + tsb_loadin.DisplayStyle = ToolStripItemDisplayStyle.Text; + tsb_loadin.Image = (Image)resources.GetObject("tsb_loadin.Image"); + tsb_loadin.ImageTransparentColor = Color.Magenta; + tsb_loadin.Name = "tsb_loadin"; + tsb_loadin.Size = new Size(60,22); + tsb_loadin.Text = "导入附件"; + tsb_loadin.Click += tsb_loadin_Click; + // + // toolStripSeparator1 + // + toolStripSeparator1.Name = "toolStripSeparator1"; + toolStripSeparator1.Size = new Size(6,25); + // // WorkMain // AutoScaleDimensions = new SizeF(7F,17F); @@ -644,5 +661,7 @@ private Button bt_m_Backup; private Label label1; private SplitContainer splitContainer2; + private ToolStripSeparator toolStripSeparator1; + private ToolStripButton tsb_loadin; } } \ No newline at end of file diff --git a/CalendarNotepad/WorkMain.cs b/CalendarNotepad/WorkMain.cs index 3889dc9..0077a63 100644 --- a/CalendarNotepad/WorkMain.cs +++ b/CalendarNotepad/WorkMain.cs @@ -338,5 +338,9 @@ namespace CalendarNotepad File.Copy(this.Db.SqliteDbfile,filePath); MessageBox.Show("备份完成"); } + + private void tsb_loadin_Click(object sender,EventArgs e) { + 导入ToolStripMenuItem_Click(sender,EventArgs.Empty); + } } } diff --git a/CalendarNotepad/WorkMain.resx b/CalendarNotepad/WorkMain.resx index 24e1c18..44c8dc7 100644 --- a/CalendarNotepad/WorkMain.resx +++ b/CalendarNotepad/WorkMain.resx @@ -197,6 +197,15 @@ J/+f6DYF0yA+yQac6Db5f6hWCmwIiE+mC0wIu2DS2Vf/F1x6DefjwlgNyNr34r/0wkdgTMgQDAOQNRNj CIoBOg0rMTTDMLIhIHbriZeYBmDTiIxBGkEYxge5liQDsGGQqykyAISpZwAlmIEywMAAAAc1/Jwvt6sN AAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACRSURBVDhPY/j27dt/SjDYACcnJ7IwigEf3n8kCZNswPNb + J/+f6DYF0yA+yQac6Db5f6hWCmwIiE+mC0wIu2DS2Vf/F1x6DefjwlgNyNr34r/0wkdgTMgQDAOQNRNj + CIoBOg0rMTTDMLIhIHbriZeYBmDTiIxBGkEYxge5liQDsGGQqykyAISpZwAlmIEywMAAAAc1/Jwvt6sN + AAAAAElFTkSuQmCC