工具条增加导入附件按钮

This commit is contained in:
Falcon 2024-07-24 14:50:44 +08:00
parent 47ff1f5885
commit 2f68a949c5
3 changed files with 36 additions and 4 deletions

View File

@ -70,6 +70,8 @@
panel2 = new Panel(); panel2 = new Panel();
panel3 = new Panel(); panel3 = new Panel();
OpenFileDlg = new OpenFileDialog(); OpenFileDlg = new OpenFileDialog();
tsb_loadin = new ToolStripButton();
toolStripSeparator1 = new ToolStripSeparator();
tabControl1.SuspendLayout(); tabControl1.SuspendLayout();
tpWorkManage.SuspendLayout(); tpWorkManage.SuspendLayout();
((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit(); ((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit();
@ -337,7 +339,7 @@
// //
splitContainer2.Panel2.Controls.Add(FileListView); splitContainer2.Panel2.Controls.Add(FileListView);
splitContainer2.Size = new Size(465,423); splitContainer2.Size = new Size(465,423);
splitContainer2.SplitterDistance = 355; splitContainer2.SplitterDistance = 328;
splitContainer2.TabIndex = 10; splitContainer2.TabIndex = 10;
// //
// rtbMsg // rtbMsg
@ -346,7 +348,7 @@
rtbMsg.EnableAutoDragDrop = true; rtbMsg.EnableAutoDragDrop = true;
rtbMsg.Location = new Point(0,25); rtbMsg.Location = new Point(0,25);
rtbMsg.Name = "rtbMsg"; rtbMsg.Name = "rtbMsg";
rtbMsg.Size = new Size(465,330); rtbMsg.Size = new Size(465,303);
rtbMsg.TabIndex = 7; rtbMsg.TabIndex = 7;
rtbMsg.Text = ""; rtbMsg.Text = "";
rtbMsg.LinkClicked += rtbMsg_LinkClicked; rtbMsg.LinkClicked += rtbMsg_LinkClicked;
@ -354,7 +356,7 @@
// //
// toolStrip1 // 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.Location = new Point(0,0);
toolStrip1.Name = "toolStrip1"; toolStrip1.Name = "toolStrip1";
toolStrip1.Size = new Size(465,25); toolStrip1.Size = new Size(465,25);
@ -389,7 +391,7 @@
FileListView.GridLines = true; FileListView.GridLines = true;
FileListView.Location = new Point(0,0); FileListView.Location = new Point(0,0);
FileListView.Name = "FileListView"; FileListView.Name = "FileListView";
FileListView.Size = new Size(465,64); FileListView.Size = new Size(465,91);
FileListView.TabIndex = 9; FileListView.TabIndex = 9;
FileListView.UseCompatibleStateImageBehavior = false; FileListView.UseCompatibleStateImageBehavior = false;
FileListView.View = View.Details; FileListView.View = View.Details;
@ -555,6 +557,21 @@
// //
OpenFileDlg.Multiselect = true; 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 // WorkMain
// //
AutoScaleDimensions = new SizeF(7F,17F); AutoScaleDimensions = new SizeF(7F,17F);
@ -644,5 +661,7 @@
private Button bt_m_Backup; private Button bt_m_Backup;
private Label label1; private Label label1;
private SplitContainer splitContainer2; private SplitContainer splitContainer2;
private ToolStripSeparator toolStripSeparator1;
private ToolStripButton tsb_loadin;
} }
} }

View File

@ -338,5 +338,9 @@ namespace CalendarNotepad
File.Copy(this.Db.SqliteDbfile,filePath); File.Copy(this.Db.SqliteDbfile,filePath);
MessageBox.Show("备份完成"); MessageBox.Show("备份完成");
} }
private void tsb_loadin_Click(object sender,EventArgs e) {
ToolStripMenuItem_Click(sender,EventArgs.Empty);
}
} }
} }

View File

@ -197,6 +197,15 @@
J/+f6DYF0yA+yQac6Db5f6hWCmwIiE+mC0wIu2DS2Vf/F1x6DefjwlgNyNr34r/0wkdgTMgQDAOQNRNj J/+f6DYF0yA+yQac6Db5f6hWCmwIiE+mC0wIu2DS2Vf/F1x6DefjwlgNyNr34r/0wkdgTMgQDAOQNRNj
CIoBOg0rMTTDMLIhIHbriZeYBmDTiIxBGkEYxge5liQDsGGQqykyAISpZwAlmIEywMAAAAc1/Jwvt6sN CIoBOg0rMTTDMLIhIHbriZeYBmDTiIxBGkEYxge5liQDsGGQqykyAISpZwAlmIEywMAAAAc1/Jwvt6sN
AAAAAElFTkSuQmCC AAAAAElFTkSuQmCC
</value>
</data>
<data name="tsb_loadin.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACRSURBVDhPY/j27dt/SjDYACcnJ7IwigEf3n8kCZNswPNb
J/+f6DYF0yA+yQac6Db5f6hWCmwIiE+mC0wIu2DS2Vf/F1x6DefjwlgNyNr34r/0wkdgTMgQDAOQNRNj
CIoBOg0rMTTDMLIhIHbriZeYBmDTiIxBGkEYxge5liQDsGGQqykyAISpZwAlmIEywMAAAAc1/Jwvt6sN
AAAAAElFTkSuQmCC
</value> </value>
</data> </data>
<metadata name="FileListView.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="FileListView.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">