diff --git a/CalendarNotepad/CalendarNotepad.csproj b/CalendarNotepad/CalendarNotepad.csproj
index fd29b11..65847f0 100644
--- a/CalendarNotepad/CalendarNotepad.csproj
+++ b/CalendarNotepad/CalendarNotepad.csproj
@@ -13,4 +13,19 @@
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/CalendarNotepad/Properties/Resources.Designer.cs b/CalendarNotepad/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..7dc8a5e
--- /dev/null
+++ b/CalendarNotepad/Properties/Resources.Designer.cs
@@ -0,0 +1,63 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace CalendarNotepad.Properties {
+ using System;
+
+
+ ///
+ /// 一个强类型的资源类,用于查找本地化的字符串等。
+ ///
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// 返回此类使用的缓存的 ResourceManager 实例。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CalendarNotepad.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// 重写当前线程的 CurrentUICulture 属性,对
+ /// 使用此强类型资源类的所有资源查找执行重写。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/CalendarNotepad/Properties/Resources.resx b/CalendarNotepad/Properties/Resources.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CalendarNotepad/Properties/Resources.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CalendarNotepad/WorkMain.Designer.cs b/CalendarNotepad/WorkMain.Designer.cs
index 8cc304e..0a54dea 100644
--- a/CalendarNotepad/WorkMain.Designer.cs
+++ b/CalendarNotepad/WorkMain.Designer.cs
@@ -25,6 +25,7 @@
/// the contents of this method with the code editor.
///
private void InitializeComponent() {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WorkMain));
tabControl1 = new TabControl();
tpWorkManage = new TabPage();
splitContainer1 = new SplitContainer();
@@ -46,6 +47,9 @@
radioButton5 = new RadioButton();
mcWorkDay = new MonthCalendar();
rtbMsg = new RichTextBox();
+ toolStrip1 = new ToolStrip();
+ tsp_Copy = new ToolStripButton();
+ tsb_palse = new ToolStripButton();
tabControl1.SuspendLayout();
tpWorkManage.SuspendLayout();
((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit();
@@ -57,6 +61,7 @@
flowLayoutPanel1.SuspendLayout();
gbWorkTypes.SuspendLayout();
C_WorkTypes.SuspendLayout();
+ toolStrip1.SuspendLayout();
SuspendLayout();
//
// tabControl1
@@ -97,6 +102,7 @@
// splitContainer1.Panel2
//
splitContainer1.Panel2.Controls.Add(rtbMsg);
+ splitContainer1.Panel2.Controls.Add(toolStrip1);
splitContainer1.Size = new Size(681,454);
splitContainer1.SplitterDistance = 236;
splitContainer1.TabIndex = 9;
@@ -289,11 +295,41 @@
//
rtbMsg.Dock = DockStyle.Fill;
rtbMsg.EnableAutoDragDrop = true;
- rtbMsg.Location = new Point(0,0);
+ rtbMsg.Location = new Point(0,25);
rtbMsg.Name = "rtbMsg";
- rtbMsg.Size = new Size(441,454);
+ rtbMsg.Size = new Size(441,429);
rtbMsg.TabIndex = 7;
rtbMsg.Text = "";
+ rtbMsg.LinkClicked += rtbMsg_LinkClicked;
+ //
+ // toolStrip1
+ //
+ toolStrip1.Items.AddRange(new ToolStripItem[] { tsp_Copy,tsb_palse });
+ toolStrip1.Location = new Point(0,0);
+ toolStrip1.Name = "toolStrip1";
+ toolStrip1.Size = new Size(441,25);
+ toolStrip1.TabIndex = 8;
+ toolStrip1.Text = "toolStrip1";
+ //
+ // tsp_Copy
+ //
+ tsp_Copy.DisplayStyle = ToolStripItemDisplayStyle.Text;
+ tsp_Copy.ImageTransparentColor = Color.Magenta;
+ tsp_Copy.Name = "tsp_Copy";
+ tsp_Copy.Size = new Size(36,22);
+ tsp_Copy.Text = "复制";
+ tsp_Copy.TextAlign = ContentAlignment.MiddleRight;
+ tsp_Copy.Click += tsp_Copy_Click;
+ //
+ // tsb_palse
+ //
+ tsb_palse.DisplayStyle = ToolStripItemDisplayStyle.Text;
+ tsb_palse.Image = (Image)resources.GetObject("tsb_palse.Image");
+ tsb_palse.ImageTransparentColor = Color.Magenta;
+ tsb_palse.Name = "tsb_palse";
+ tsb_palse.Size = new Size(36,22);
+ tsb_palse.Text = "粘贴";
+ tsb_palse.Click += tsb_palse_Click;
//
// WorkMain
//
@@ -311,6 +347,7 @@
splitContainer1.Panel1.ResumeLayout(false);
splitContainer1.Panel1.PerformLayout();
splitContainer1.Panel2.ResumeLayout(false);
+ splitContainer1.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)splitContainer1).EndInit();
splitContainer1.ResumeLayout(false);
groupBox1.ResumeLayout(false);
@@ -320,6 +357,8 @@
gbWorkTypes.ResumeLayout(false);
C_WorkTypes.ResumeLayout(false);
C_WorkTypes.PerformLayout();
+ toolStrip1.ResumeLayout(false);
+ toolStrip1.PerformLayout();
ResumeLayout(false);
}
@@ -346,5 +385,8 @@
private GroupBox groupBox1;
private FlowLayoutPanel C_WorkOut;
private RadioButton radioButton9;
+ private ToolStrip toolStrip1;
+ private ToolStripButton tsp_Copy;
+ private ToolStripButton tsb_palse;
}
}
\ No newline at end of file
diff --git a/CalendarNotepad/WorkMain.cs b/CalendarNotepad/WorkMain.cs
index 4d31962..5060e39 100644
--- a/CalendarNotepad/WorkMain.cs
+++ b/CalendarNotepad/WorkMain.cs
@@ -189,5 +189,22 @@ namespace CalendarNotepad
}
return "";
}
+
+ private void rtbMsg_LinkClicked(object sender,LinkClickedEventArgs e) {
+ try {
+ System.Diagnostics.Process.Start(e.LinkText);
+ }
+ catch(Exception ex) {
+ MessageBox.Show(ex.ToString());
+ }
+ }
+
+ private void tsp_Copy_Click(object sender,EventArgs e) {
+ Clipboard.SetText(this.rtbMsg.SelectedText);
+ }
+
+ private void tsb_palse_Click(object sender,EventArgs e) {
+ this.rtbMsg.AppendText(Clipboard.GetText());
+ }
}
}
diff --git a/CalendarNotepad/WorkMain.resx b/CalendarNotepad/WorkMain.resx
index a395bff..7909714 100644
--- a/CalendarNotepad/WorkMain.resx
+++ b/CalendarNotepad/WorkMain.resx
@@ -117,4 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 17, 17
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACRSURBVDhPY/j27dt/SjDYACcnJ7IwigEf3n8kCZNswPNb
+ J/+f6DYF0yA+yQac6Db5f6hWCmwIiE+mC0wIu2DS2Vf/F1x6DefjwlgNyNr34r/0wkdgTMgQDAOQNRNj
+ CIoBOg0rMTTDMLIhIHbriZeYBmDTiIxBGkEYxge5liQDsGGQqykyAISpZwAlmIEywMAAAAc1/Jwvt6sN
+ AAAAAElFTkSuQmCC
+
+
\ No newline at end of file