### 2021-10-16更新

------
#### TimeClock    V1.0.2110.1601
- *.[新增]便笺新增靠边隐藏功能。
This commit is contained in:
鑫Intel 2021-10-16 16:21:09 +08:00
parent c354d01b08
commit 094d1f9d50
23 changed files with 1034 additions and 644 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,2 +1,2 @@
[TimeClock] [TimeClock]
hwnd=5705712 hwnd=143234

View File

@ -1,3 +1,3 @@
<root> <root>
<list id="LastUpdateTime" Value="2020/12/17 14:43:55" /> <list id="LastUpdateTime" Value="2021/10/16 16:17:23" />
</root> </root>

View File

@ -1,4 +1,9 @@
### 2021-08-15更新 ### 2021-10-16更新
------
#### TimeClock V1.0.2110.1601
- *.[新增]便笺新增靠边隐藏功能。
### 2021-08-15更新
------ ------
#### RyLine V2.0.2108.1501 #### RyLine V2.0.2108.1501
- *.[改进]时间同步方式采用NTP方式进行同步。 - *.[改进]时间同步方式采用NTP方式进行同步。

Binary file not shown.

View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MyTimeClock
{
class Init
{
static System.Threading.Mutex run;
public static void Run(string[] args)
{
Itrycn_Info.UserDataFolder = ryCommon.RyFiles.GetRealPath(Itrycn_Info.UserDataFolder);
run = new System.Threading.Mutex(true, Itrycn_Info.Soft_Id, out bool runone);
if (!runone) //已经运行了
{
ryCommon.Ini ini = new ryCommon.Ini(Itrycn_Info.UserDataFolder + "\\Win.dat");
ryControls.Win32.SendMessage((IntPtr)ini.ReadIni(Itrycn_Info.Soft_Id, "hwnd", 0), 17189, 100, 100);
}
else
{
Application.Run(new Frmmain(args));
}
}
}
}

View File

@ -68,6 +68,7 @@
<Compile Include="Frmmain.Designer.cs"> <Compile Include="Frmmain.Designer.cs">
<DependentUpon>Frmmain.cs</DependentUpon> <DependentUpon>Frmmain.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Init.cs" />
<Compile Include="Itrycn_Info.cs" /> <Compile Include="Itrycn_Info.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />

View File

@ -1,33 +1,44 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reflection;
using System.Windows.Forms; using System.Windows.Forms;
namespace MyTimeClock namespace MyTimeClock
{ {
static class Program static class Program
{ {
static System.Threading.Mutex run;
/// <summary> /// <summary>
/// 应用程序的主入口点。 /// 应用程序的主入口点。
/// </summary> /// </summary>
[STAThread] [STAThread]
static void Main(string[] args) static void Main(string[] args)
{ {
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
Application.ThreadException += Application_ThreadException; Application.ThreadException += Application_ThreadException;
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Itrycn_Info.UserDataFolder = ryCommon.RyFiles.GetRealPath(Itrycn_Info.UserDataFolder); Init.Run(args);
run = new System.Threading.Mutex(true, Itrycn_Info.Soft_Id, out bool runone); }
if (!runone) //已经运行了 static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
try
{ {
ryCommon.Ini ini = new ryCommon.Ini(Itrycn_Info.UserDataFolder + "\\Win.dat"); AssemblyName assemblyName = new AssemblyName(args.Name);
ryControls.Win32.SendMessage((IntPtr)ini.ReadIni(Itrycn_Info.Soft_Id, "hwnd", 0), 17189, 100, 100); if (System.IO.File.Exists(Application.StartupPath + @"\Bin\dlls\" + assemblyName.Name + ".dll"))
{
return Assembly.LoadFrom(Application.StartupPath + @"\Bin\dlls\" + assemblyName.Name + ".dll");
}
else
{
return args.RequestingAssembly;
}
} }
else catch (Exception ex)
{ {
Application.Run(new Frmmain(args)); return args.RequestingAssembly;
} }
} }
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)

View File

@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RyLine
{
public class Init
{
public static void Run(string[] args)
{
if (args.Length == 1)
{
RyCode.RunCodeLine(args[0]);
}
else if (args.Length > 1)
{
if (args[0] == "SetAutoRun" && args.Length == 4)
{ ryCommon.ryStart.SetAutoRun(true, args[1], "\"" + args[2] + "\"" + " " + args[3]); }
else if (args[0] == "DelAutoRun" && args.Length == 2)
{ ryCommon.ryStart.SetAutoRun(false, args[1]); }
else if (args[0] == "Hosts" && args.Length == 2)
{
if (System.IO.File.Exists(args[1]))
{
ryCommon.Hosts.AddHosts(ryCommon.RyFiles.ReadAllText(args[1]));
}
}
}
}
}
}

View File

@ -1,4 +1,5 @@
using System; using System;
using System.Reflection;
using System.Windows.Forms; using System.Windows.Forms;
namespace RyLine namespace RyLine
@ -11,31 +12,34 @@ namespace RyLine
[STAThread] [STAThread]
static void Main(string[] args) static void Main(string[] args)
{ {
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
// 修改 EWX_SHUTDOWN 或者 EWX_LOGOFF, EWX_REBOOT等实现不同得功能。 // 修改 EWX_SHUTDOWN 或者 EWX_LOGOFF, EWX_REBOOT等实现不同得功能。
// 在XP下可以看到帮助信息以得到不同得参数 // 在XP下可以看到帮助信息以得到不同得参数
// SHUTDOWN /? // SHUTDOWN /?
if(args.Length==1) Init.Run(args);
{
RyCode.RunCodeLine(args[0]);
}
else if (args.Length>1)
{
if(args[0]=="SetAutoRun" && args.Length == 4)
{ ryCommon.ryStart.SetAutoRun(true, args[1], "\""+args[2]+ "\"" + " "+args[3]); }
else if (args[0] == "DelAutoRun" && args.Length == 2)
{ ryCommon.ryStart.SetAutoRun(false, args[1]); }
else if (args[0] == "Hosts" && args.Length == 2)
{
if (System.IO.File.Exists(args[1]))
{
ryCommon.Hosts.AddHosts(ryCommon.RyFiles.ReadAllText(args[1]));
}
}
}
//shoutdown.DoExitWin(shoutdown.EWX_SHUTDOWN + shoutdown.EWX_FORCE); //shoutdown.DoExitWin(shoutdown.EWX_SHUTDOWN + shoutdown.EWX_FORCE);
//Application.Run(new Form1()); //Application.Run(new Form1());
}
static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
try
{
AssemblyName assemblyName = new AssemblyName(args.Name);
if (System.IO.File.Exists(Application.StartupPath + @"\Bin\dlls\" + assemblyName.Name + ".dll"))
{
return Assembly.LoadFrom(Application.StartupPath + @"\Bin\dlls\" + assemblyName.Name + ".dll");
}
else
{
return args.RequestingAssembly;
}
}
catch (Exception ex)
{
return args.RequestingAssembly;
}
} }
} }
} }

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RyLine")] [assembly: AssemblyProduct("RyLine")]
[assembly: AssemblyCopyright("Copyright © 2017-2019")] [assembly: AssemblyCopyright("Copyright © 2017-2021")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: : // 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.2108.1501")] [assembly: AssemblyVersion("2.0.2108.2601")]
[assembly: AssemblyFileVersion("2.0.2108.1501")] [assembly: AssemblyFileVersion("2.0.2108.2601")]

View File

@ -62,6 +62,7 @@
<Compile Include="FrmConfirm.Designer.cs"> <Compile Include="FrmConfirm.Designer.cs">
<DependentUpon>FrmConfirm.cs</DependentUpon> <DependentUpon>FrmConfirm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Init.cs" />
<Compile Include="NTPClient.cs" /> <Compile Include="NTPClient.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />

View File

@ -0,0 +1,259 @@
using System;
using System.Drawing;
using System.Collections.Generic;
using System.Windows.Forms;
namespace TimeClock.API
{
public enum MagneticLocation
{
Left = 0,
Right = 1,
Top = 2,
Bottom = 3
}
public enum MagneticState
{
Adsorbent, // 吸附
Separation // 分离
}
public class MagneticManager
{
public class ChildFormInfo
{
public Form Child { get; set; }
public MagneticLocation Location { get; set; }
public MagneticState State { get; set; }
public bool CutstomSetLocation { get; set; }
}
public int Step { get; set; }
private Form m_mainForm = null;
private List<ChildFormInfo> m_childs = new List<ChildFormInfo>();
public MagneticManager(Form form)
{
m_mainForm = form;
form.LocationChanged += MainForm_LocationChanged;
form.SizeChanged += MainForm_SizeChanged;
form.FormClosed += MainForm_FormClosed;
Step = 20;
}
public void addChild(Form childForm, MagneticLocation loc)
{
foreach (ChildFormInfo info in m_childs)
{
if (info.Child == childForm)
{
return;
}
}
ChildFormInfo childInfo = new ChildFormInfo();
childInfo.Child = childForm;
childInfo.Location = loc;
childInfo.State = MagneticState.Adsorbent;
childInfo.CutstomSetLocation = false;
childForm.LocationChanged += ChildForm_LocationChanged;
childForm.SizeChanged += ChildForm_SizeChanged;
childForm.FormClosed += ChildForm_FormClosed;
m_childs.Add(childInfo);
adsorbentChild(childInfo);
}
private ChildFormInfo getInfo(Form form)
{
if (form == null)
{
return null;
}
foreach (ChildFormInfo info in m_childs)
{
if (info.Child == form)
{
return info;
}
}
return null;
}
private Point getLocation(ChildFormInfo info)
{
Point pos = Point.Empty;
switch (info.Location)
{
case MagneticLocation.Left:
pos = new Point(m_mainForm.Left - info.Child.Width + 14, m_mainForm.Top);
break;
case MagneticLocation.Right:
pos = new Point(m_mainForm.Right - 14, m_mainForm.Top);
break;
case MagneticLocation.Top:
pos = new Point(m_mainForm.Left, m_mainForm.Top - info.Child.Height);
break;
case MagneticLocation.Bottom:
pos = new Point(m_mainForm.Left, m_mainForm.Bottom);
break;
default:
break;
}
return pos;
}
private void setChildLocation(ChildFormInfo info, Point location)
{
if (info.Child == null)
{
return;
}
info.CutstomSetLocation = true;
info.Child.Location = location;
info.CutstomSetLocation = false;
}
private void setChildLocation(ChildFormInfo info, int x, int y)
{
setChildLocation(info, new Point(x, y));
}
private void resetChildLocation(ChildFormInfo info)
{
if (info.Child == null)
{
return;
}
Point pos = getLocation(info);
setChildLocation(info, pos);
}
private void adsorbentChild(ChildFormInfo info)
{
info.State = MagneticState.Adsorbent;
resetChildLocation(info);
}
private void separationChild(ChildFormInfo info)
{
info.State = MagneticState.Separation;
}
private void MainForm_LocationChanged(object sender, EventArgs e)
{
foreach (ChildFormInfo info in m_childs)
{
if (info.State == MagneticState.Adsorbent)
{
resetChildLocation(info);
}
}
}
private void MainForm_SizeChanged(object sender, EventArgs e)
{
foreach (ChildFormInfo info in m_childs)
{
if (info.State == MagneticState.Adsorbent)
{
resetChildLocation(info);
}
}
}
private void MainForm_FormClosed(object sender, EventArgs e)
{
}
private void ChildForm_LocationChanged(object sender, EventArgs e)
{
ChildFormInfo info = getInfo(sender as Form);
if (info == null)
{
return;
}
if (info.CutstomSetLocation == true)
{
return;
}
Point location = getLocation(info);
if (info.Child.Left > location.X && info.Location == MagneticLocation.Right)
{
if (info.Child.Left - location.X > Step)
{
separationChild(info);
}
else
{
adsorbentChild(info);
}
}
else if (info.Child.Left < location.X && info.Location == MagneticLocation.Left)
{
if (info.Child.Left - location.X < -Step)
{
separationChild(info);
}
else
{
adsorbentChild(info);
}
}
if (info.Child.Top > location.Y && info.Location == MagneticLocation.Bottom)
{
if (info.Child.Top - location.Y > Step)
{
separationChild(info);
}
else
{
adsorbentChild(info);
}
}
else if (info.Child.Top < location.Y && info.Location == MagneticLocation.Top)
{
if (info.Child.Top - location.Y < -Step)
{
separationChild(info);
}
else
{
adsorbentChild(info);
}
}
}
private void ChildForm_SizeChanged(object sender, EventArgs e)
{
ChildFormInfo info = getInfo(sender as Form);
if (info != null && info.State == MagneticState.Adsorbent)
{
resetChildLocation(info);
}
}
private void ChildForm_FormClosed(object sender, EventArgs e)
{
ChildFormInfo info = getInfo(sender as Form);
if (info != null)
{
m_childs.Remove(info);
}
}
}
}

View File

@ -28,464 +28,476 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
this.txtContent = new System.Windows.Forms.RichTextBox(); this.txtContent = new System.Windows.Forms.RichTextBox();
this.MenuNote = new System.Windows.Forms.ContextMenuStrip(this.components); this.MenuNote = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem10 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem10 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem11 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem11 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem12 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem12 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem13 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem13 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.PnlTop = new System.Windows.Forms.Panel(); this.PnlTop = new System.Windows.Forms.Panel();
this.LblTopMost = new System.Windows.Forms.Label(); this.LblTopMost = new System.Windows.Forms.Label();
this.LblClose = new System.Windows.Forms.Label(); this.LblClose = new System.Windows.Forms.Label();
this.LblAdd = new System.Windows.Forms.Label(); this.LblAdd = new System.Windows.Forms.Label();
this.PnlBottom = new System.Windows.Forms.Panel(); this.PnlBottom = new System.Windows.Forms.Panel();
this.LblBullet = new System.Windows.Forms.Label(); this.LblImage = new System.Windows.Forms.Label();
this.LblStrikeout = new System.Windows.Forms.Label(); this.LblBullet = new System.Windows.Forms.Label();
this.LblUnderline = new System.Windows.Forms.Label(); this.LblStrikeout = new System.Windows.Forms.Label();
this.LblItalic = new System.Windows.Forms.Label(); this.LblUnderline = new System.Windows.Forms.Label();
this.LblBold = new System.Windows.Forms.Label(); this.LblItalic = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.LblBold = new System.Windows.Forms.Label();
this.colorDialog1 = new System.Windows.Forms.ColorDialog(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.fontDialog1 = new System.Windows.Forms.FontDialog(); this.colorDialog1 = new System.Windows.Forms.ColorDialog();
this.timer1 = new System.Windows.Forms.Timer(this.components); this.fontDialog1 = new System.Windows.Forms.FontDialog();
this.LblImage = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components);
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.MenuNote.SuspendLayout(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.PnlTop.SuspendLayout(); this.MenuNote.SuspendLayout();
this.PnlBottom.SuspendLayout(); this.PnlTop.SuspendLayout();
this.SuspendLayout(); this.PnlBottom.SuspendLayout();
// this.SuspendLayout();
// txtContent //
// // txtContent
this.txtContent.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); //
this.txtContent.BorderStyle = System.Windows.Forms.BorderStyle.None; this.txtContent.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.txtContent.ContextMenuStrip = this.MenuNote; this.txtContent.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtContent.Dock = System.Windows.Forms.DockStyle.Fill; this.txtContent.ContextMenuStrip = this.MenuNote;
this.txtContent.Location = new System.Drawing.Point(3, 32); this.txtContent.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtContent.Name = "txtContent"; this.txtContent.Location = new System.Drawing.Point(3, 32);
this.txtContent.Size = new System.Drawing.Size(345, 262); this.txtContent.Name = "txtContent";
this.txtContent.TabIndex = 0; this.txtContent.Size = new System.Drawing.Size(345, 262);
this.txtContent.Text = ""; this.txtContent.TabIndex = 0;
this.txtContent.TextChanged += new System.EventHandler(this.txtContent_TextChanged); this.txtContent.Text = "";
// this.txtContent.TextChanged += new System.EventHandler(this.txtContent_TextChanged);
// MenuNote //
// // MenuNote
this.MenuNote.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { //
this.ToolStripMenuItem, this.MenuNote.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.toolStripMenuItem1, this.ToolStripMenuItem,
this.ToolStripMenuItem, this.toolStripMenuItem1,
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.toolStripMenuItem2, this.ToolStripMenuItem,
this.ToolStripMenuItem, this.toolStripMenuItem2,
this.toolStripMenuItem3, this.ToolStripMenuItem,
this.ToolStripMenuItem, this.toolStripMenuItem3,
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.toolStripMenuItem4, this.ToolStripMenuItem,
this.ToolStripMenuItem}); this.ToolStripMenuItem,
this.MenuNote.Name = "MenuNote"; this.toolStripMenuItem4,
this.MenuNote.Size = new System.Drawing.Size(149, 292); this.ToolStripMenuItem});
this.MenuNote.Opening += new System.ComponentModel.CancelEventHandler(this.MenuNote_Opening); this.MenuNote.Name = "MenuNote";
// this.MenuNote.Size = new System.Drawing.Size(181, 336);
// 撤销ToolStripMenuItem this.MenuNote.Opening += new System.ComponentModel.CancelEventHandler(this.MenuNote_Opening);
// //
this.ToolStripMenuItem.Name = "撤销ToolStripMenuItem"; // 撤销ToolStripMenuItem
this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Z"; //
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.ToolStripMenuItem.Name = "撤销ToolStripMenuItem";
this.ToolStripMenuItem.Text = "撤销"; this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Z";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "撤销";
// 重做ToolStripMenuItem this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.ToolStripMenuItem.Name = "重做ToolStripMenuItem"; // 重做ToolStripMenuItem
this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Y"; //
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.ToolStripMenuItem.Name = "重做ToolStripMenuItem";
this.ToolStripMenuItem.Text = "重做"; this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Y";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "重做";
// toolStripMenuItem1 this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.toolStripMenuItem1.Name = "toolStripMenuItem1"; // toolStripMenuItem1
this.toolStripMenuItem1.Size = new System.Drawing.Size(145, 6); //
// this.toolStripMenuItem1.Name = "toolStripMenuItem1";
// 剪切ToolStripMenuItem this.toolStripMenuItem1.Size = new System.Drawing.Size(177, 6);
// //
this.ToolStripMenuItem.Name = "剪切ToolStripMenuItem"; // 剪切ToolStripMenuItem
this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+X"; //
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.ToolStripMenuItem.Name = "剪切ToolStripMenuItem";
this.ToolStripMenuItem.Text = "剪切"; this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+X";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "剪切";
// 复制ToolStripMenuItem this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.ToolStripMenuItem.Name = "复制ToolStripMenuItem"; // 复制ToolStripMenuItem
this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+C"; //
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.ToolStripMenuItem.Name = "复制ToolStripMenuItem";
this.ToolStripMenuItem.Text = "复制"; this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+C";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "复制";
// 粘贴ToolStripMenuItem this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.ToolStripMenuItem.Name = "粘贴ToolStripMenuItem"; // 粘贴ToolStripMenuItem
this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+V"; //
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.ToolStripMenuItem.Name = "粘贴ToolStripMenuItem";
this.ToolStripMenuItem.Text = "粘贴"; this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+V";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "粘贴";
// 删除ToolStripMenuItem this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.ToolStripMenuItem.Name = "删除ToolStripMenuItem"; // 删除ToolStripMenuItem
this.ToolStripMenuItem.ShortcutKeyDisplayString = "Delete"; //
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.ToolStripMenuItem.Name = "删除ToolStripMenuItem";
this.ToolStripMenuItem.Text = "删除"; this.ToolStripMenuItem.ShortcutKeyDisplayString = "Delete";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "删除";
// toolStripMenuItem2 this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.toolStripMenuItem2.Name = "toolStripMenuItem2"; // toolStripMenuItem2
this.toolStripMenuItem2.Size = new System.Drawing.Size(145, 6); //
// this.toolStripMenuItem2.Name = "toolStripMenuItem2";
// 全选ToolStripMenuItem this.toolStripMenuItem2.Size = new System.Drawing.Size(177, 6);
// //
this.ToolStripMenuItem.Name = "全选ToolStripMenuItem"; // 全选ToolStripMenuItem
this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+A"; //
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.ToolStripMenuItem.Name = "全选ToolStripMenuItem";
this.ToolStripMenuItem.Text = "全选"; this.ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+A";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "全选";
// toolStripMenuItem3 this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.toolStripMenuItem3.Name = "toolStripMenuItem3"; // toolStripMenuItem3
this.toolStripMenuItem3.Size = new System.Drawing.Size(145, 6); //
// this.toolStripMenuItem3.Name = "toolStripMenuItem3";
// 字体ToolStripMenuItem this.toolStripMenuItem3.Size = new System.Drawing.Size(177, 6);
// //
this.ToolStripMenuItem.Name = "字体ToolStripMenuItem"; // 字体ToolStripMenuItem
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); //
this.ToolStripMenuItem.Text = "字体"; this.ToolStripMenuItem.Name = "字体ToolStripMenuItem";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "字体";
// 字体颜色ToolStripMenuItem this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.ToolStripMenuItem.Name = "字体颜色ToolStripMenuItem"; // 字体颜色ToolStripMenuItem
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); //
this.ToolStripMenuItem.Text = "字体颜色"; this.ToolStripMenuItem.Name = "字体颜色ToolStripMenuItem";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "字体颜色";
// 背景颜色ToolStripMenuItem this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.ToolStripMenuItem.Name = "背景颜色ToolStripMenuItem"; // 背景颜色ToolStripMenuItem
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); //
this.ToolStripMenuItem.Text = "便笺背景颜色"; this.ToolStripMenuItem.Name = "背景颜色ToolStripMenuItem";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "便笺背景颜色";
// 透明度ToolStripMenuItem this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { // 透明度ToolStripMenuItem
this.ToolStripMenuItem, //
this.toolStripMenuItem5, this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripMenuItem7, this.ToolStripMenuItem,
this.toolStripMenuItem8, this.toolStripMenuItem5,
this.toolStripMenuItem9, this.toolStripMenuItem7,
this.toolStripMenuItem10, this.toolStripMenuItem8,
this.toolStripMenuItem11, this.toolStripMenuItem9,
this.toolStripMenuItem12, this.toolStripMenuItem10,
this.toolStripMenuItem13}); this.toolStripMenuItem11,
this.ToolStripMenuItem.Name = "透明度ToolStripMenuItem"; this.toolStripMenuItem12,
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.toolStripMenuItem13});
this.ToolStripMenuItem.Text = "透明度"; this.ToolStripMenuItem.Name = "透明度ToolStripMenuItem";
// this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// 不透明ToolStripMenuItem this.ToolStripMenuItem.Text = "透明度";
// //
this.ToolStripMenuItem.Name = "不透明ToolStripMenuItem"; // 不透明ToolStripMenuItem
this.ToolStripMenuItem.Size = new System.Drawing.Size(112, 22); //
this.ToolStripMenuItem.Text = "不透明"; this.ToolStripMenuItem.Name = "不透明ToolStripMenuItem";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "不透明";
// toolStripMenuItem5 this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.toolStripMenuItem5.Name = "toolStripMenuItem5"; // toolStripMenuItem5
this.toolStripMenuItem5.Size = new System.Drawing.Size(109, 6); //
// this.toolStripMenuItem5.Name = "toolStripMenuItem5";
// toolStripMenuItem7 this.toolStripMenuItem5.Size = new System.Drawing.Size(177, 6);
// //
this.toolStripMenuItem7.Name = "toolStripMenuItem7"; // toolStripMenuItem7
this.toolStripMenuItem7.Size = new System.Drawing.Size(112, 22); //
this.toolStripMenuItem7.Text = "60%"; this.toolStripMenuItem7.Name = "toolStripMenuItem7";
this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click); this.toolStripMenuItem7.Size = new System.Drawing.Size(180, 22);
// this.toolStripMenuItem7.Text = "60%";
// toolStripMenuItem8 this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click);
// //
this.toolStripMenuItem8.Name = "toolStripMenuItem8"; // toolStripMenuItem8
this.toolStripMenuItem8.Size = new System.Drawing.Size(112, 22); //
this.toolStripMenuItem8.Text = "70%"; this.toolStripMenuItem8.Name = "toolStripMenuItem8";
this.toolStripMenuItem8.Click += new System.EventHandler(this.toolStripMenuItem8_Click); this.toolStripMenuItem8.Size = new System.Drawing.Size(180, 22);
// this.toolStripMenuItem8.Text = "70%";
// toolStripMenuItem9 this.toolStripMenuItem8.Click += new System.EventHandler(this.toolStripMenuItem8_Click);
// //
this.toolStripMenuItem9.Name = "toolStripMenuItem9"; // toolStripMenuItem9
this.toolStripMenuItem9.Size = new System.Drawing.Size(112, 22); //
this.toolStripMenuItem9.Text = "75%"; this.toolStripMenuItem9.Name = "toolStripMenuItem9";
this.toolStripMenuItem9.Click += new System.EventHandler(this.toolStripMenuItem9_Click); this.toolStripMenuItem9.Size = new System.Drawing.Size(180, 22);
// this.toolStripMenuItem9.Text = "75%";
// toolStripMenuItem10 this.toolStripMenuItem9.Click += new System.EventHandler(this.toolStripMenuItem9_Click);
// //
this.toolStripMenuItem10.Name = "toolStripMenuItem10"; // toolStripMenuItem10
this.toolStripMenuItem10.Size = new System.Drawing.Size(112, 22); //
this.toolStripMenuItem10.Text = "80%"; this.toolStripMenuItem10.Name = "toolStripMenuItem10";
this.toolStripMenuItem10.Click += new System.EventHandler(this.toolStripMenuItem10_Click); this.toolStripMenuItem10.Size = new System.Drawing.Size(180, 22);
// this.toolStripMenuItem10.Text = "80%";
// toolStripMenuItem11 this.toolStripMenuItem10.Click += new System.EventHandler(this.toolStripMenuItem10_Click);
// //
this.toolStripMenuItem11.Name = "toolStripMenuItem11"; // toolStripMenuItem11
this.toolStripMenuItem11.Size = new System.Drawing.Size(112, 22); //
this.toolStripMenuItem11.Text = "85%"; this.toolStripMenuItem11.Name = "toolStripMenuItem11";
this.toolStripMenuItem11.Click += new System.EventHandler(this.toolStripMenuItem11_Click); this.toolStripMenuItem11.Size = new System.Drawing.Size(180, 22);
// this.toolStripMenuItem11.Text = "85%";
// toolStripMenuItem12 this.toolStripMenuItem11.Click += new System.EventHandler(this.toolStripMenuItem11_Click);
// //
this.toolStripMenuItem12.Name = "toolStripMenuItem12"; // toolStripMenuItem12
this.toolStripMenuItem12.Size = new System.Drawing.Size(112, 22); //
this.toolStripMenuItem12.Text = "90%"; this.toolStripMenuItem12.Name = "toolStripMenuItem12";
this.toolStripMenuItem12.Click += new System.EventHandler(this.toolStripMenuItem12_Click); this.toolStripMenuItem12.Size = new System.Drawing.Size(180, 22);
// this.toolStripMenuItem12.Text = "90%";
// toolStripMenuItem13 this.toolStripMenuItem12.Click += new System.EventHandler(this.toolStripMenuItem12_Click);
// //
this.toolStripMenuItem13.Name = "toolStripMenuItem13"; // toolStripMenuItem13
this.toolStripMenuItem13.Size = new System.Drawing.Size(112, 22); //
this.toolStripMenuItem13.Text = "95%"; this.toolStripMenuItem13.Name = "toolStripMenuItem13";
this.toolStripMenuItem13.Click += new System.EventHandler(this.toolStripMenuItem13_Click); this.toolStripMenuItem13.Size = new System.Drawing.Size(180, 22);
// this.toolStripMenuItem13.Text = "95%";
// toolStripMenuItem4 this.toolStripMenuItem13.Click += new System.EventHandler(this.toolStripMenuItem13_Click);
// //
this.toolStripMenuItem4.Name = "toolStripMenuItem4"; // toolStripMenuItem4
this.toolStripMenuItem4.Size = new System.Drawing.Size(145, 6); //
// this.toolStripMenuItem4.Name = "toolStripMenuItem4";
// 插入ToolStripMenuItem this.toolStripMenuItem4.Size = new System.Drawing.Size(177, 6);
// //
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { // 插入ToolStripMenuItem
this.ToolStripMenuItem}); //
this.ToolStripMenuItem.Name = "插入ToolStripMenuItem"; this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.ToolStripMenuItem});
this.ToolStripMenuItem.Text = "插入"; this.ToolStripMenuItem.Name = "插入ToolStripMenuItem";
// this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// 插入时间ToolStripMenuItem this.ToolStripMenuItem.Text = "插入";
// //
this.ToolStripMenuItem.Name = "插入时间ToolStripMenuItem"; // 插入时间ToolStripMenuItem
this.ToolStripMenuItem.Size = new System.Drawing.Size(124, 22); //
this.ToolStripMenuItem.Text = "插入时间"; this.ToolStripMenuItem.Name = "插入时间ToolStripMenuItem";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
// this.ToolStripMenuItem.Text = "插入时间";
// PnlTop this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
this.PnlTop.Controls.Add(this.LblTopMost); // PnlTop
this.PnlTop.Controls.Add(this.LblClose); //
this.PnlTop.Controls.Add(this.LblAdd); this.PnlTop.Controls.Add(this.LblTopMost);
this.PnlTop.Dock = System.Windows.Forms.DockStyle.Top; this.PnlTop.Controls.Add(this.LblClose);
this.PnlTop.Location = new System.Drawing.Point(3, 3); this.PnlTop.Controls.Add(this.LblAdd);
this.PnlTop.Name = "PnlTop"; this.PnlTop.Dock = System.Windows.Forms.DockStyle.Top;
this.PnlTop.Size = new System.Drawing.Size(345, 29); this.PnlTop.Location = new System.Drawing.Point(3, 3);
this.PnlTop.TabIndex = 1; this.PnlTop.Name = "PnlTop";
// this.PnlTop.Size = new System.Drawing.Size(345, 29);
// LblTopMost this.PnlTop.TabIndex = 1;
// //
this.LblTopMost.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); // LblTopMost
this.LblTopMost.BackColor = System.Drawing.Color.Transparent; //
this.LblTopMost.Cursor = System.Windows.Forms.Cursors.Hand; this.LblTopMost.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LblTopMost.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblTopMost.BackColor = System.Drawing.Color.Transparent;
this.LblTopMost.Location = new System.Drawing.Point(298, 5); this.LblTopMost.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblTopMost.Name = "LblTopMost"; this.LblTopMost.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblTopMost.Size = new System.Drawing.Size(20, 19); this.LblTopMost.Location = new System.Drawing.Point(298, 5);
this.LblTopMost.TabIndex = 2; this.LblTopMost.Name = "LblTopMost";
this.LblTopMost.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.LblTopMost.Size = new System.Drawing.Size(20, 19);
this.toolTip1.SetToolTip(this.LblTopMost, "置顶/取消置顶"); this.LblTopMost.TabIndex = 2;
this.LblTopMost.Click += new System.EventHandler(this.LblTopMost_Click); this.LblTopMost.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// this.toolTip1.SetToolTip(this.LblTopMost, "置顶/取消置顶");
// LblClose this.LblTopMost.Click += new System.EventHandler(this.LblTopMost_Click);
// //
this.LblClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); // LblClose
this.LblClose.BackColor = System.Drawing.Color.Transparent; //
this.LblClose.Cursor = System.Windows.Forms.Cursors.Hand; this.LblClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.LblClose.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblClose.BackColor = System.Drawing.Color.Transparent;
this.LblClose.Location = new System.Drawing.Point(324, 5); this.LblClose.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblClose.Name = "LblClose"; this.LblClose.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblClose.Size = new System.Drawing.Size(20, 19); this.LblClose.Location = new System.Drawing.Point(324, 5);
this.LblClose.TabIndex = 1; this.LblClose.Name = "LblClose";
this.LblClose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.LblClose.Size = new System.Drawing.Size(20, 19);
this.toolTip1.SetToolTip(this.LblClose, "关闭"); this.LblClose.TabIndex = 1;
this.LblClose.Click += new System.EventHandler(this.LblClose_Click); this.LblClose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// this.toolTip1.SetToolTip(this.LblClose, "关闭");
// LblAdd this.LblClose.Click += new System.EventHandler(this.LblClose_Click);
// //
this.LblAdd.BackColor = System.Drawing.Color.Transparent; // LblAdd
this.LblAdd.Cursor = System.Windows.Forms.Cursors.Hand; //
this.LblAdd.Font = new System.Drawing.Font("黑体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblAdd.BackColor = System.Drawing.Color.Transparent;
this.LblAdd.Location = new System.Drawing.Point(6, 4); this.LblAdd.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblAdd.Name = "LblAdd"; this.LblAdd.Font = new System.Drawing.Font("黑体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblAdd.Size = new System.Drawing.Size(20, 19); this.LblAdd.Location = new System.Drawing.Point(6, 4);
this.LblAdd.TabIndex = 0; this.LblAdd.Name = "LblAdd";
this.LblAdd.Text = "+"; this.LblAdd.Size = new System.Drawing.Size(20, 19);
this.LblAdd.Click += new System.EventHandler(this.LblAdd_Click); this.LblAdd.TabIndex = 0;
// this.LblAdd.Text = "+";
// PnlBottom this.LblAdd.Click += new System.EventHandler(this.LblAdd_Click);
// //
this.PnlBottom.Controls.Add(this.LblImage); // PnlBottom
this.PnlBottom.Controls.Add(this.LblBullet); //
this.PnlBottom.Controls.Add(this.LblStrikeout); this.PnlBottom.Controls.Add(this.LblImage);
this.PnlBottom.Controls.Add(this.LblUnderline); this.PnlBottom.Controls.Add(this.LblBullet);
this.PnlBottom.Controls.Add(this.LblItalic); this.PnlBottom.Controls.Add(this.LblStrikeout);
this.PnlBottom.Controls.Add(this.LblBold); this.PnlBottom.Controls.Add(this.LblUnderline);
this.PnlBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.PnlBottom.Controls.Add(this.LblItalic);
this.PnlBottom.Location = new System.Drawing.Point(3, 294); this.PnlBottom.Controls.Add(this.LblBold);
this.PnlBottom.Name = "PnlBottom"; this.PnlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.PnlBottom.Size = new System.Drawing.Size(345, 25); this.PnlBottom.Location = new System.Drawing.Point(3, 294);
this.PnlBottom.TabIndex = 2; this.PnlBottom.Name = "PnlBottom";
// this.PnlBottom.Size = new System.Drawing.Size(345, 25);
// LblBullet this.PnlBottom.TabIndex = 2;
// //
this.LblBullet.AutoSize = true; // LblImage
this.LblBullet.BackColor = System.Drawing.Color.Transparent; //
this.LblBullet.Cursor = System.Windows.Forms.Cursors.Hand; this.LblImage.AutoSize = true;
this.LblBullet.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblImage.BackColor = System.Drawing.Color.Transparent;
this.LblBullet.Location = new System.Drawing.Point(125, 6); this.LblImage.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblBullet.Name = "LblBullet"; this.LblImage.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblBullet.Size = new System.Drawing.Size(22, 14); this.LblImage.Location = new System.Drawing.Point(153, 6);
this.LblBullet.TabIndex = 5; this.LblImage.Name = "LblImage";
this.LblBullet.Text = "┇"; this.LblImage.Size = new System.Drawing.Size(22, 14);
this.toolTip1.SetToolTip(this.LblBullet, "项目符号"); this.LblImage.TabIndex = 6;
this.LblBullet.Click += new System.EventHandler(this.LblBullet_Click); this.LblImage.Text = "图";
// this.toolTip1.SetToolTip(this.LblImage, "插入图片");
// LblStrikeout this.LblImage.Click += new System.EventHandler(this.LblImage_Click);
// //
this.LblStrikeout.AutoSize = true; // LblBullet
this.LblStrikeout.BackColor = System.Drawing.Color.Transparent; //
this.LblStrikeout.Cursor = System.Windows.Forms.Cursors.Hand; this.LblBullet.AutoSize = true;
this.LblStrikeout.Font = new System.Drawing.Font("宋体", 10.5F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Strikeout))), System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblBullet.BackColor = System.Drawing.Color.Transparent;
this.LblStrikeout.Location = new System.Drawing.Point(88, 6); this.LblBullet.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblStrikeout.Name = "LblStrikeout"; this.LblBullet.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblStrikeout.Size = new System.Drawing.Size(31, 14); this.LblBullet.Location = new System.Drawing.Point(125, 6);
this.LblStrikeout.TabIndex = 4; this.LblBullet.Name = "LblBullet";
this.LblStrikeout.Text = "abc"; this.LblBullet.Size = new System.Drawing.Size(22, 14);
this.toolTip1.SetToolTip(this.LblStrikeout, "删除线"); this.LblBullet.TabIndex = 5;
this.LblStrikeout.Click += new System.EventHandler(this.LblStrikeout_Click); this.LblBullet.Text = "┇";
// this.toolTip1.SetToolTip(this.LblBullet, "项目符号");
// LblUnderline this.LblBullet.Click += new System.EventHandler(this.LblBullet_Click);
// //
this.LblUnderline.AutoSize = true; // LblStrikeout
this.LblUnderline.BackColor = System.Drawing.Color.Transparent; //
this.LblUnderline.Cursor = System.Windows.Forms.Cursors.Hand; this.LblStrikeout.AutoSize = true;
this.LblUnderline.Font = new System.Drawing.Font("宋体", 10.5F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblStrikeout.BackColor = System.Drawing.Color.Transparent;
this.LblUnderline.Location = new System.Drawing.Point(62, 6); this.LblStrikeout.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblUnderline.Name = "LblUnderline"; this.LblStrikeout.Font = new System.Drawing.Font("宋体", 10.5F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Strikeout))), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblUnderline.Size = new System.Drawing.Size(15, 14); this.LblStrikeout.Location = new System.Drawing.Point(88, 6);
this.LblUnderline.TabIndex = 3; this.LblStrikeout.Name = "LblStrikeout";
this.LblUnderline.Text = "U"; this.LblStrikeout.Size = new System.Drawing.Size(31, 14);
this.toolTip1.SetToolTip(this.LblUnderline, "下划线"); this.LblStrikeout.TabIndex = 4;
this.LblUnderline.Click += new System.EventHandler(this.LblUnderline_Click); this.LblStrikeout.Text = "abc";
// this.toolTip1.SetToolTip(this.LblStrikeout, "删除线");
// LblItalic this.LblStrikeout.Click += new System.EventHandler(this.LblStrikeout_Click);
// //
this.LblItalic.AutoSize = true; // LblUnderline
this.LblItalic.BackColor = System.Drawing.Color.Transparent; //
this.LblItalic.Cursor = System.Windows.Forms.Cursors.Hand; this.LblUnderline.AutoSize = true;
this.LblItalic.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblUnderline.BackColor = System.Drawing.Color.Transparent;
this.LblItalic.Location = new System.Drawing.Point(36, 6); this.LblUnderline.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblItalic.Name = "LblItalic"; this.LblUnderline.Font = new System.Drawing.Font("宋体", 10.5F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblItalic.Size = new System.Drawing.Size(15, 14); this.LblUnderline.Location = new System.Drawing.Point(62, 6);
this.LblItalic.TabIndex = 2; this.LblUnderline.Name = "LblUnderline";
this.LblItalic.Text = "/"; this.LblUnderline.Size = new System.Drawing.Size(15, 14);
this.toolTip1.SetToolTip(this.LblItalic, "斜体"); this.LblUnderline.TabIndex = 3;
this.LblItalic.Click += new System.EventHandler(this.LblItalic_Click); this.LblUnderline.Text = "U";
// this.toolTip1.SetToolTip(this.LblUnderline, "下划线");
// LblBold this.LblUnderline.Click += new System.EventHandler(this.LblUnderline_Click);
// //
this.LblBold.AutoSize = true; // LblItalic
this.LblBold.BackColor = System.Drawing.Color.Transparent; //
this.LblBold.Cursor = System.Windows.Forms.Cursors.Hand; this.LblItalic.AutoSize = true;
this.LblBold.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblItalic.BackColor = System.Drawing.Color.Transparent;
this.LblBold.Location = new System.Drawing.Point(10, 6); this.LblItalic.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblBold.Name = "LblBold"; this.LblItalic.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblBold.Size = new System.Drawing.Size(15, 14); this.LblItalic.Location = new System.Drawing.Point(36, 6);
this.LblBold.TabIndex = 1; this.LblItalic.Name = "LblItalic";
this.LblBold.Text = "B"; this.LblItalic.Size = new System.Drawing.Size(15, 14);
this.toolTip1.SetToolTip(this.LblBold, "加粗"); this.LblItalic.TabIndex = 2;
this.LblBold.Click += new System.EventHandler(this.LblBold_Click); this.LblItalic.Text = "/";
// this.toolTip1.SetToolTip(this.LblItalic, "斜体");
// timer1 this.LblItalic.Click += new System.EventHandler(this.LblItalic_Click);
// //
this.timer1.Interval = 400; // LblBold
this.timer1.Tick += new System.EventHandler(this.Timer1_Tick); //
// this.LblBold.AutoSize = true;
// LblImage this.LblBold.BackColor = System.Drawing.Color.Transparent;
// this.LblBold.Cursor = System.Windows.Forms.Cursors.Hand;
this.LblImage.AutoSize = true; this.LblBold.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.LblImage.BackColor = System.Drawing.Color.Transparent; this.LblBold.Location = new System.Drawing.Point(10, 6);
this.LblImage.Cursor = System.Windows.Forms.Cursors.Hand; this.LblBold.Name = "LblBold";
this.LblImage.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.LblBold.Size = new System.Drawing.Size(15, 14);
this.LblImage.Location = new System.Drawing.Point(153, 6); this.LblBold.TabIndex = 1;
this.LblImage.Name = "LblImage"; this.LblBold.Text = "B";
this.LblImage.Size = new System.Drawing.Size(22, 14); this.toolTip1.SetToolTip(this.LblBold, "加粗");
this.LblImage.TabIndex = 6; this.LblBold.Click += new System.EventHandler(this.LblBold_Click);
this.LblImage.Text = "图"; //
this.toolTip1.SetToolTip(this.LblImage, "插入图片"); // timer1
this.LblImage.Click += new System.EventHandler(this.LblImage_Click); //
// this.timer1.Interval = 400;
// openFileDialog1 this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
// //
this.openFileDialog1.Filter = "图片|*.jpg;*.bmp;*.gif;*.png"; // openFileDialog1
// //
// FrmSticky this.openFileDialog1.Filter = "图片|*.jpg;*.bmp;*.gif;*.png";
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); // 靠边隐藏ToolStripMenuItem
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; //
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.ToolStripMenuItem.Checked = true;
this.ClientSize = new System.Drawing.Size(351, 322); this.ToolStripMenuItem.CheckOnClick = true;
this.Controls.Add(this.txtContent); this.ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.Controls.Add(this.PnlBottom); this.ToolStripMenuItem.Name = "靠边隐藏ToolStripMenuItem";
this.Controls.Add(this.PnlTop); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.ToolStripMenuItem.Text = "靠边隐藏";
this.Name = "FrmSticky"; //
this.Padding = new System.Windows.Forms.Padding(3); // FrmSticky
this.ShowInTaskbar = false; //
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmSticky_FormClosed); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Load += new System.EventHandler(this.FrmSticky_Load); this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.ResizeEnd += new System.EventHandler(this.FrmSticky_ResizeEnd); this.ClientSize = new System.Drawing.Size(351, 322);
this.LocationChanged += new System.EventHandler(this.FrmSticky_LocationChanged); this.Controls.Add(this.txtContent);
this.Resize += new System.EventHandler(this.FrmSticky_Resize); this.Controls.Add(this.PnlBottom);
this.MenuNote.ResumeLayout(false); this.Controls.Add(this.PnlTop);
this.PnlTop.ResumeLayout(false); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.PnlBottom.ResumeLayout(false); this.Name = "FrmSticky";
this.PnlBottom.PerformLayout(); this.Padding = new System.Windows.Forms.Padding(3);
this.ResumeLayout(false); this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmSticky_FormClosed);
this.Load += new System.EventHandler(this.FrmSticky_Load);
this.ResizeEnd += new System.EventHandler(this.FrmSticky_ResizeEnd);
this.LocationChanged += new System.EventHandler(this.FrmSticky_LocationChanged);
this.SizeChanged += new System.EventHandler(this.FrmSticky_SizeChanged);
this.Resize += new System.EventHandler(this.FrmSticky_Resize);
this.MenuNote.ResumeLayout(false);
this.PnlTop.ResumeLayout(false);
this.PnlBottom.ResumeLayout(false);
this.PnlBottom.PerformLayout();
this.ResumeLayout(false);
} }
#endregion #endregion
@ -533,6 +545,7 @@
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem13; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem13;
private System.Windows.Forms.Label LblBullet; private System.Windows.Forms.Label LblBullet;
private System.Windows.Forms.Label LblImage; private System.Windows.Forms.Label LblImage;
private System.Windows.Forms.OpenFileDialog openFileDialog1; private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
} }
} }

View File

@ -6,13 +6,16 @@ using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace TimeClock.DbOp namespace TimeClock.DbOp
{ {
public partial class FrmSticky : Form public partial class FrmSticky : Form
{ {
internal AnchorStyles StopAanhor = AnchorStyles.Top;
bool hideFlag = false;
public FrmSticky() public FrmSticky()
{ {
InitializeComponent(); InitializeComponent();
@ -259,7 +262,8 @@ namespace TimeClock.DbOp
mStor.SetAttrValue("Width", this.Width); mStor.SetAttrValue("Width", this.Width);
mStor.SetAttrValue("Height", this. Height); mStor.SetAttrValue("Height", this. Height);
mStor.SetAttrValue("TopMost", this.TopMost); mStor.SetAttrValue("TopMost", this.TopMost);
mStor.SetAttrValue("Opacity", this.Opacity); mStor.SetAttrValue("Opacity", this.Opacity);
mStor.SetAttrValue("PullOverHide", this.ToolStripMenuItem.Checked);
mySQL.AddField("Setting", mStor.XMLText); mySQL.AddField("Setting", mStor.XMLText);
mySQL.AddField("editTime", DateTime.Now); mySQL.AddField("editTime", DateTime.Now);
DataProvider mydb = new DataProvider(); DataProvider mydb = new DataProvider();
@ -313,14 +317,21 @@ namespace TimeClock.DbOp
ryCommon.Storage mStor = new ryCommon.Storage(row["Setting"].ToString()); ryCommon.Storage mStor = new ryCommon.Storage(row["Setting"].ToString());
mStor.SelectNodeBySet(); mStor.SelectNodeBySet();
this.Location = new Point(mStor.GetAttrValue("Left", 0), mStor.GetAttrValue("Top", 0)); this.Location = new Point(mStor.GetAttrValue("Left", 0), mStor.GetAttrValue("Top", 0));
this.Size = new Size(mStor.GetAttrValue("Width", 0), mStor.GetAttrValue("Height", 0)); this.Size = new Size(mStor.GetAttrValue("Width", 0), mStor.GetAttrValue("Height", 0));
if (this.Top < 0) { this.Top = 0; }
if (this.Left < 0) { this.Left = 0; }
var screen = Screen.GetWorkingArea(this);
if (this.Top > screen.Bottom) { this.Top = screen.Bottom-this.Height; }
if (this.Left > screen.Right) { this.Left = screen.Right - this.Width; }
if (this.Left < 0) { this.Left = 0; }
this.TopMost = mStor.GetAttrValue("TopMost", false); this.TopMost = mStor.GetAttrValue("TopMost", false);
this.Opacity = mStor.GetAttrValue("Opacity", 0d); this.Opacity = mStor.GetAttrValue("Opacity", 0d);
try try
{ {
StickyBackColor = ColorTranslator.FromHtml(mStor.GetAttrValue("StickyBackColor")); StickyBackColor = ColorTranslator.FromHtml(mStor.GetAttrValue("StickyBackColor"));
} }
catch { } catch { }
this.ToolStripMenuItem.Checked = mStor.GetAttrValue("PullOverHide", true);
#endregion #endregion
} }
} }
@ -365,7 +376,8 @@ namespace TimeClock.DbOp
dt_change = DateTime.Now; dt_change = DateTime.Now;
isChange = true; isChange = true;
} }
[DllImport("User32.dll")]
private static extern bool PtInRect(ref Rectangle Rects, Point lpPoint);
private void Timer1_Tick(object sender, EventArgs e) private void Timer1_Tick(object sender, EventArgs e)
{ {
if(isChange && dt_change.AddMilliseconds(delayTime)<DateTime.Now) if(isChange && dt_change.AddMilliseconds(delayTime)<DateTime.Now)
@ -383,9 +395,32 @@ namespace TimeClock.DbOp
if (PnlTop.Visible) PnlTop.Visible = false; if (PnlTop.Visible) PnlTop.Visible = false;
if (PnlBottom.Visible) PnlBottom.Visible = false; if (PnlBottom.Visible) PnlBottom.Visible = false;
} }
if (this.WindowState == FormWindowState.Normal && ToolStripMenuItem.Checked)
{
System.Drawing.Point cursorPoint = new Point(Cursor.Position.X, Cursor.Position.Y);//获取鼠标在屏幕的坐标点
Rectangle Rects = new Rectangle(this.Left, this.Top, this.Left + this.Width, this.Top + this.Height);//存储当前窗体在屏幕的所在区域
bool prInRect = PtInRect(ref Rects, cursorPoint);
if (prInRect)
{//当鼠标在当前窗体内
if (this.Top < 0)//窗体的Top属性小于0
this.Top = 0;
else if (this.Left < 0)//窗体的Left属性小于0
this.Left = 0;
else if (this.Right > Screen.PrimaryScreen.WorkingArea.Width)//窗体的Right属性大于屏幕宽度
this.Left = Screen.PrimaryScreen.WorkingArea.Width - this.Width;
}
else
{
int space = 8;
if (this.Top < 5) //当窗体的上边框与屏幕的顶端的距离小于5时
this.Top = 7 - this.Height + space; //将窗体隐藏到屏幕的顶端
else if (this.Left < 5) //当窗体的左边框与屏幕的左端的距离小于5时
this.Left = 5 - this.Width + space; //将窗体隐藏到屏幕的左端
else if (this.Right > Screen.PrimaryScreen.WorkingArea.Width - 5)//当窗体的右边框与屏幕的右端的距离小于5时
this.Left = Screen.PrimaryScreen.WorkingArea.Width - 5 - space;//将窗体隐藏到屏幕的右端
}
}
} }
private void ToolStripMenuItem_Click(object sender, EventArgs e) private void ToolStripMenuItem_Click(object sender, EventArgs e)
{ {
txtContent.SelectedText = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); txtContent.SelectedText = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
@ -463,6 +498,10 @@ namespace TimeClock.DbOp
MessageBox.Show("图片无效。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show("图片无效。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
} }
private void FrmSticky_SizeChanged(object sender, EventArgs e)
{
}
} }
} }

View File

@ -1,144 +1,141 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value> <value>[base64 mime encoded serialized .NET Framework object]</value>
</data> </data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata"> <xsd:element name="metadata">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="data"> <xsd:element name="data">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" /> <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:schema> </xsd:schema>
<resheader name="resmimetype"> <resheader name="resmimetype">
<value>text/microsoft-resx</value> <value>text/microsoft-resx</value>
</resheader> </resheader>
<resheader name="version"> <resheader name="version">
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="MenuNote.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="MenuNote.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>106, 17</value> <value>106, 17</value>
</metadata> </metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="colorDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>204, 17</value>
</metadata> </metadata>
<metadata name="colorDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="fontDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>204, 17</value> <value>331, 17</value>
</metadata> </metadata>
<metadata name="fontDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>331, 17</value> <value>453, 17</value>
</metadata> </metadata>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>453, 17</value> <value>543, 17</value>
</metadata> </metadata>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>543, 17</value> <value>72</value>
</metadata> </metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>72</value>
</metadata>
</root> </root>

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: : // 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.2103.1001")] [assembly: AssemblyVersion("1.0.2110.1601")]
[assembly: AssemblyFileVersion("1.0.2103.1001")] [assembly: AssemblyFileVersion("1.0.2110.1601")]

View File

@ -73,6 +73,7 @@
<Compile Include="API\RichImg.cs" /> <Compile Include="API\RichImg.cs" />
<Compile Include="API\SoundPlay.cs" /> <Compile Include="API\SoundPlay.cs" />
<Compile Include="API\SpVoice.cs" /> <Compile Include="API\SpVoice.cs" />
<Compile Include="API\TinyBook.cs" />
<Compile Include="DbOp\Custom.cs" /> <Compile Include="DbOp\Custom.cs" />
<Compile Include="DbOp\CustomShow\DJSDayUI.cs"> <Compile Include="DbOp\CustomShow\DJSDayUI.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>