### 2021-10-16更新
------ #### TimeClock V1.0.2110.1601 - *.[新增]便笺新增靠边隐藏功能。
This commit is contained in:
parent
c354d01b08
commit
094d1f9d50
Binary file not shown.
Binary file not shown.
BIN
Bin/Debug/MyTimeClock/SysDb.rar
Normal file
BIN
Bin/Debug/MyTimeClock/SysDb.rar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,2 +1,2 @@
|
|||
[TimeClock]
|
||||
hwnd=5705712
|
||||
hwnd=143234
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<root>
|
||||
<list id="LastUpdateTime" Value="2020/12/17 14:43:55" />
|
||||
<list id="LastUpdateTime" Value="2021/10/16 16:17:23" />
|
||||
</root>
|
|
@ -1,4 +1,9 @@
|
|||
### 2021-08-15更新
|
||||
### 2021-10-16更新
|
||||
------
|
||||
#### TimeClock V1.0.2110.1601
|
||||
- *.[新增]便笺新增靠边隐藏功能。
|
||||
|
||||
### 2021-08-15更新
|
||||
------
|
||||
#### RyLine V2.0.2108.1501
|
||||
- *.[改进]时间同步方式采用NTP方式进行同步。
|
||||
|
|
Binary file not shown.
BIN
Source/MyTimeClock/.vs/TimeClock/v17/.suo
Normal file
BIN
Source/MyTimeClock/.vs/TimeClock/v17/.suo
Normal file
Binary file not shown.
27
Source/MyTimeClock/MyTimeClock/Init.cs
Normal file
27
Source/MyTimeClock/MyTimeClock/Init.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -68,6 +68,7 @@
|
|||
<Compile Include="Frmmain.Designer.cs">
|
||||
<DependentUpon>Frmmain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Init.cs" />
|
||||
<Compile Include="Itrycn_Info.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
|
|
@ -1,33 +1,44 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MyTimeClock
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
static System.Threading.Mutex run;
|
||||
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
|
||||
Application.ThreadException += Application_ThreadException;
|
||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Itrycn_Info.UserDataFolder = ryCommon.RyFiles.GetRealPath(Itrycn_Info.UserDataFolder);
|
||||
run = new System.Threading.Mutex(true, Itrycn_Info.Soft_Id, out bool runone);
|
||||
if (!runone) //已经运行了
|
||||
Init.Run(args);
|
||||
}
|
||||
static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
|
||||
{
|
||||
try
|
||||
{
|
||||
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);
|
||||
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;
|
||||
}
|
||||
}
|
||||
else
|
||||
catch (Exception ex)
|
||||
{
|
||||
Application.Run(new Frmmain(args));
|
||||
return args.RequestingAssembly;
|
||||
}
|
||||
}
|
||||
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||
|
|
32
Source/MyTimeClock/RyLine/Init.cs
Normal file
32
Source/MyTimeClock/RyLine/Init.cs
Normal 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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace RyLine
|
||||
|
@ -11,31 +12,34 @@ namespace RyLine
|
|||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
// 修改 EWX_SHUTDOWN 或者 EWX_LOGOFF, EWX_REBOOT等实现不同得功能。
|
||||
// 在XP下可以看到帮助信息,以得到不同得参数
|
||||
// SHUTDOWN /?
|
||||
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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
Init.Run(args);
|
||||
//shoutdown.DoExitWin(shoutdown.EWX_SHUTDOWN + shoutdown.EWX_FORCE);
|
||||
//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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("RyLine")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017-2019")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017-2021")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.0.2108.1501")]
|
||||
[assembly: AssemblyFileVersion("2.0.2108.1501")]
|
||||
[assembly: AssemblyVersion("2.0.2108.2601")]
|
||||
[assembly: AssemblyFileVersion("2.0.2108.2601")]
|
|
@ -62,6 +62,7 @@
|
|||
<Compile Include="FrmConfirm.Designer.cs">
|
||||
<DependentUpon>FrmConfirm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Init.cs" />
|
||||
<Compile Include="NTPClient.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
|
259
Source/MyTimeClock/TimeClock/API/TinyBook.cs
Normal file
259
Source/MyTimeClock/TimeClock/API/TinyBook.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
931
Source/MyTimeClock/TimeClock/DbOp/FrmSticky.Designer.cs
generated
931
Source/MyTimeClock/TimeClock/DbOp/FrmSticky.Designer.cs
generated
|
@ -28,464 +28,476 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.txtContent = new System.Windows.Forms.RichTextBox();
|
||||
this.MenuNote = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.撤销ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.重做ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
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.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.全选ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
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.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem10 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem11 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem12 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem13 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.插入ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.插入时间ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.PnlTop = new System.Windows.Forms.Panel();
|
||||
this.LblTopMost = new System.Windows.Forms.Label();
|
||||
this.LblClose = new System.Windows.Forms.Label();
|
||||
this.LblAdd = new System.Windows.Forms.Label();
|
||||
this.PnlBottom = new System.Windows.Forms.Panel();
|
||||
this.LblBullet = new System.Windows.Forms.Label();
|
||||
this.LblStrikeout = new System.Windows.Forms.Label();
|
||||
this.LblUnderline = new System.Windows.Forms.Label();
|
||||
this.LblItalic = new System.Windows.Forms.Label();
|
||||
this.LblBold = new System.Windows.Forms.Label();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.colorDialog1 = new System.Windows.Forms.ColorDialog();
|
||||
this.fontDialog1 = new System.Windows.Forms.FontDialog();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.LblImage = new System.Windows.Forms.Label();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.MenuNote.SuspendLayout();
|
||||
this.PnlTop.SuspendLayout();
|
||||
this.PnlBottom.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// 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.ContextMenuStrip = this.MenuNote;
|
||||
this.txtContent.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtContent.Location = new System.Drawing.Point(3, 32);
|
||||
this.txtContent.Name = "txtContent";
|
||||
this.txtContent.Size = new System.Drawing.Size(345, 262);
|
||||
this.txtContent.TabIndex = 0;
|
||||
this.txtContent.Text = "";
|
||||
this.txtContent.TextChanged += new System.EventHandler(this.txtContent_TextChanged);
|
||||
//
|
||||
// MenuNote
|
||||
//
|
||||
this.MenuNote.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.撤销ToolStripMenuItem,
|
||||
this.重做ToolStripMenuItem,
|
||||
this.toolStripMenuItem1,
|
||||
this.剪切ToolStripMenuItem,
|
||||
this.复制ToolStripMenuItem,
|
||||
this.粘贴ToolStripMenuItem,
|
||||
this.删除ToolStripMenuItem,
|
||||
this.toolStripMenuItem2,
|
||||
this.全选ToolStripMenuItem,
|
||||
this.toolStripMenuItem3,
|
||||
this.字体ToolStripMenuItem,
|
||||
this.字体颜色ToolStripMenuItem,
|
||||
this.背景颜色ToolStripMenuItem,
|
||||
this.透明度ToolStripMenuItem,
|
||||
this.toolStripMenuItem4,
|
||||
this.插入ToolStripMenuItem});
|
||||
this.MenuNote.Name = "MenuNote";
|
||||
this.MenuNote.Size = new System.Drawing.Size(149, 292);
|
||||
this.MenuNote.Opening += new System.ComponentModel.CancelEventHandler(this.MenuNote_Opening);
|
||||
//
|
||||
// 撤销ToolStripMenuItem
|
||||
//
|
||||
this.撤销ToolStripMenuItem.Name = "撤销ToolStripMenuItem";
|
||||
this.撤销ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Z";
|
||||
this.撤销ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.撤销ToolStripMenuItem.Text = "撤销";
|
||||
this.撤销ToolStripMenuItem.Click += new System.EventHandler(this.撤销ToolStripMenuItem_Click);
|
||||
//
|
||||
// 重做ToolStripMenuItem
|
||||
//
|
||||
this.重做ToolStripMenuItem.Name = "重做ToolStripMenuItem";
|
||||
this.重做ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Y";
|
||||
this.重做ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.重做ToolStripMenuItem.Text = "重做";
|
||||
this.重做ToolStripMenuItem.Click += new System.EventHandler(this.重做ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem1
|
||||
//
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(145, 6);
|
||||
//
|
||||
// 剪切ToolStripMenuItem
|
||||
//
|
||||
this.剪切ToolStripMenuItem.Name = "剪切ToolStripMenuItem";
|
||||
this.剪切ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+X";
|
||||
this.剪切ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.剪切ToolStripMenuItem.Text = "剪切";
|
||||
this.剪切ToolStripMenuItem.Click += new System.EventHandler(this.剪切ToolStripMenuItem_Click);
|
||||
//
|
||||
// 复制ToolStripMenuItem
|
||||
//
|
||||
this.复制ToolStripMenuItem.Name = "复制ToolStripMenuItem";
|
||||
this.复制ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+C";
|
||||
this.复制ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.复制ToolStripMenuItem.Text = "复制";
|
||||
this.复制ToolStripMenuItem.Click += new System.EventHandler(this.复制ToolStripMenuItem_Click);
|
||||
//
|
||||
// 粘贴ToolStripMenuItem
|
||||
//
|
||||
this.粘贴ToolStripMenuItem.Name = "粘贴ToolStripMenuItem";
|
||||
this.粘贴ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+V";
|
||||
this.粘贴ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.粘贴ToolStripMenuItem.Text = "粘贴";
|
||||
this.粘贴ToolStripMenuItem.Click += new System.EventHandler(this.粘贴ToolStripMenuItem_Click);
|
||||
//
|
||||
// 删除ToolStripMenuItem
|
||||
//
|
||||
this.删除ToolStripMenuItem.Name = "删除ToolStripMenuItem";
|
||||
this.删除ToolStripMenuItem.ShortcutKeyDisplayString = "Delete";
|
||||
this.删除ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.删除ToolStripMenuItem.Text = "删除";
|
||||
this.删除ToolStripMenuItem.Click += new System.EventHandler(this.删除ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem2
|
||||
//
|
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(145, 6);
|
||||
//
|
||||
// 全选ToolStripMenuItem
|
||||
//
|
||||
this.全选ToolStripMenuItem.Name = "全选ToolStripMenuItem";
|
||||
this.全选ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+A";
|
||||
this.全选ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.全选ToolStripMenuItem.Text = "全选";
|
||||
this.全选ToolStripMenuItem.Click += new System.EventHandler(this.全选ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem3
|
||||
//
|
||||
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
||||
this.toolStripMenuItem3.Size = new System.Drawing.Size(145, 6);
|
||||
//
|
||||
// 字体ToolStripMenuItem
|
||||
//
|
||||
this.字体ToolStripMenuItem.Name = "字体ToolStripMenuItem";
|
||||
this.字体ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.字体ToolStripMenuItem.Text = "字体";
|
||||
this.字体ToolStripMenuItem.Click += new System.EventHandler(this.字体ToolStripMenuItem_Click);
|
||||
//
|
||||
// 字体颜色ToolStripMenuItem
|
||||
//
|
||||
this.字体颜色ToolStripMenuItem.Name = "字体颜色ToolStripMenuItem";
|
||||
this.字体颜色ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.字体颜色ToolStripMenuItem.Text = "字体颜色";
|
||||
this.字体颜色ToolStripMenuItem.Click += new System.EventHandler(this.字体颜色ToolStripMenuItem_Click);
|
||||
//
|
||||
// 背景颜色ToolStripMenuItem
|
||||
//
|
||||
this.背景颜色ToolStripMenuItem.Name = "背景颜色ToolStripMenuItem";
|
||||
this.背景颜色ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.背景颜色ToolStripMenuItem.Text = "便笺背景颜色";
|
||||
this.背景颜色ToolStripMenuItem.Click += new System.EventHandler(this.背景颜色ToolStripMenuItem_Click);
|
||||
//
|
||||
// 透明度ToolStripMenuItem
|
||||
//
|
||||
this.透明度ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.不透明ToolStripMenuItem,
|
||||
this.toolStripMenuItem5,
|
||||
this.toolStripMenuItem7,
|
||||
this.toolStripMenuItem8,
|
||||
this.toolStripMenuItem9,
|
||||
this.toolStripMenuItem10,
|
||||
this.toolStripMenuItem11,
|
||||
this.toolStripMenuItem12,
|
||||
this.toolStripMenuItem13});
|
||||
this.透明度ToolStripMenuItem.Name = "透明度ToolStripMenuItem";
|
||||
this.透明度ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.透明度ToolStripMenuItem.Text = "透明度";
|
||||
//
|
||||
// 不透明ToolStripMenuItem
|
||||
//
|
||||
this.不透明ToolStripMenuItem.Name = "不透明ToolStripMenuItem";
|
||||
this.不透明ToolStripMenuItem.Size = new System.Drawing.Size(112, 22);
|
||||
this.不透明ToolStripMenuItem.Text = "不透明";
|
||||
this.不透明ToolStripMenuItem.Click += new System.EventHandler(this.不透明ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem5
|
||||
//
|
||||
this.toolStripMenuItem5.Name = "toolStripMenuItem5";
|
||||
this.toolStripMenuItem5.Size = new System.Drawing.Size(109, 6);
|
||||
//
|
||||
// toolStripMenuItem7
|
||||
//
|
||||
this.toolStripMenuItem7.Name = "toolStripMenuItem7";
|
||||
this.toolStripMenuItem7.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItem7.Text = "60%";
|
||||
this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click);
|
||||
//
|
||||
// toolStripMenuItem8
|
||||
//
|
||||
this.toolStripMenuItem8.Name = "toolStripMenuItem8";
|
||||
this.toolStripMenuItem8.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItem8.Text = "70%";
|
||||
this.toolStripMenuItem8.Click += new System.EventHandler(this.toolStripMenuItem8_Click);
|
||||
//
|
||||
// toolStripMenuItem9
|
||||
//
|
||||
this.toolStripMenuItem9.Name = "toolStripMenuItem9";
|
||||
this.toolStripMenuItem9.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItem9.Text = "75%";
|
||||
this.toolStripMenuItem9.Click += new System.EventHandler(this.toolStripMenuItem9_Click);
|
||||
//
|
||||
// toolStripMenuItem10
|
||||
//
|
||||
this.toolStripMenuItem10.Name = "toolStripMenuItem10";
|
||||
this.toolStripMenuItem10.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItem10.Text = "80%";
|
||||
this.toolStripMenuItem10.Click += new System.EventHandler(this.toolStripMenuItem10_Click);
|
||||
//
|
||||
// toolStripMenuItem11
|
||||
//
|
||||
this.toolStripMenuItem11.Name = "toolStripMenuItem11";
|
||||
this.toolStripMenuItem11.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItem11.Text = "85%";
|
||||
this.toolStripMenuItem11.Click += new System.EventHandler(this.toolStripMenuItem11_Click);
|
||||
//
|
||||
// toolStripMenuItem12
|
||||
//
|
||||
this.toolStripMenuItem12.Name = "toolStripMenuItem12";
|
||||
this.toolStripMenuItem12.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItem12.Text = "90%";
|
||||
this.toolStripMenuItem12.Click += new System.EventHandler(this.toolStripMenuItem12_Click);
|
||||
//
|
||||
// toolStripMenuItem13
|
||||
//
|
||||
this.toolStripMenuItem13.Name = "toolStripMenuItem13";
|
||||
this.toolStripMenuItem13.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItem13.Text = "95%";
|
||||
this.toolStripMenuItem13.Click += new System.EventHandler(this.toolStripMenuItem13_Click);
|
||||
//
|
||||
// toolStripMenuItem4
|
||||
//
|
||||
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
|
||||
this.toolStripMenuItem4.Size = new System.Drawing.Size(145, 6);
|
||||
//
|
||||
// 插入ToolStripMenuItem
|
||||
//
|
||||
this.插入ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.插入时间ToolStripMenuItem});
|
||||
this.插入ToolStripMenuItem.Name = "插入ToolStripMenuItem";
|
||||
this.插入ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
|
||||
this.插入ToolStripMenuItem.Text = "插入";
|
||||
//
|
||||
// 插入时间ToolStripMenuItem
|
||||
//
|
||||
this.插入时间ToolStripMenuItem.Name = "插入时间ToolStripMenuItem";
|
||||
this.插入时间ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
|
||||
this.插入时间ToolStripMenuItem.Text = "插入时间";
|
||||
this.插入时间ToolStripMenuItem.Click += new System.EventHandler(this.插入时间ToolStripMenuItem_Click);
|
||||
//
|
||||
// PnlTop
|
||||
//
|
||||
this.PnlTop.Controls.Add(this.LblTopMost);
|
||||
this.PnlTop.Controls.Add(this.LblClose);
|
||||
this.PnlTop.Controls.Add(this.LblAdd);
|
||||
this.PnlTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.PnlTop.Location = new System.Drawing.Point(3, 3);
|
||||
this.PnlTop.Name = "PnlTop";
|
||||
this.PnlTop.Size = new System.Drawing.Size(345, 29);
|
||||
this.PnlTop.TabIndex = 1;
|
||||
//
|
||||
// LblTopMost
|
||||
//
|
||||
this.LblTopMost.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.LblTopMost.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblTopMost.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblTopMost.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblTopMost.Location = new System.Drawing.Point(298, 5);
|
||||
this.LblTopMost.Name = "LblTopMost";
|
||||
this.LblTopMost.Size = new System.Drawing.Size(20, 19);
|
||||
this.LblTopMost.TabIndex = 2;
|
||||
this.LblTopMost.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.toolTip1.SetToolTip(this.LblTopMost, "置顶/取消置顶");
|
||||
this.LblTopMost.Click += new System.EventHandler(this.LblTopMost_Click);
|
||||
//
|
||||
// LblClose
|
||||
//
|
||||
this.LblClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.LblClose.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblClose.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblClose.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblClose.Location = new System.Drawing.Point(324, 5);
|
||||
this.LblClose.Name = "LblClose";
|
||||
this.LblClose.Size = new System.Drawing.Size(20, 19);
|
||||
this.LblClose.TabIndex = 1;
|
||||
this.LblClose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.toolTip1.SetToolTip(this.LblClose, "关闭");
|
||||
this.LblClose.Click += new System.EventHandler(this.LblClose_Click);
|
||||
//
|
||||
// LblAdd
|
||||
//
|
||||
this.LblAdd.BackColor = System.Drawing.Color.Transparent;
|
||||
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.Location = new System.Drawing.Point(6, 4);
|
||||
this.LblAdd.Name = "LblAdd";
|
||||
this.LblAdd.Size = new System.Drawing.Size(20, 19);
|
||||
this.LblAdd.TabIndex = 0;
|
||||
this.LblAdd.Text = "+";
|
||||
this.LblAdd.Click += new System.EventHandler(this.LblAdd_Click);
|
||||
//
|
||||
// PnlBottom
|
||||
//
|
||||
this.PnlBottom.Controls.Add(this.LblImage);
|
||||
this.PnlBottom.Controls.Add(this.LblBullet);
|
||||
this.PnlBottom.Controls.Add(this.LblStrikeout);
|
||||
this.PnlBottom.Controls.Add(this.LblUnderline);
|
||||
this.PnlBottom.Controls.Add(this.LblItalic);
|
||||
this.PnlBottom.Controls.Add(this.LblBold);
|
||||
this.PnlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.PnlBottom.Location = new System.Drawing.Point(3, 294);
|
||||
this.PnlBottom.Name = "PnlBottom";
|
||||
this.PnlBottom.Size = new System.Drawing.Size(345, 25);
|
||||
this.PnlBottom.TabIndex = 2;
|
||||
//
|
||||
// LblBullet
|
||||
//
|
||||
this.LblBullet.AutoSize = true;
|
||||
this.LblBullet.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblBullet.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblBullet.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblBullet.Location = new System.Drawing.Point(125, 6);
|
||||
this.LblBullet.Name = "LblBullet";
|
||||
this.LblBullet.Size = new System.Drawing.Size(22, 14);
|
||||
this.LblBullet.TabIndex = 5;
|
||||
this.LblBullet.Text = "┇";
|
||||
this.toolTip1.SetToolTip(this.LblBullet, "项目符号");
|
||||
this.LblBullet.Click += new System.EventHandler(this.LblBullet_Click);
|
||||
//
|
||||
// LblStrikeout
|
||||
//
|
||||
this.LblStrikeout.AutoSize = true;
|
||||
this.LblStrikeout.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblStrikeout.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
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.LblStrikeout.Location = new System.Drawing.Point(88, 6);
|
||||
this.LblStrikeout.Name = "LblStrikeout";
|
||||
this.LblStrikeout.Size = new System.Drawing.Size(31, 14);
|
||||
this.LblStrikeout.TabIndex = 4;
|
||||
this.LblStrikeout.Text = "abc";
|
||||
this.toolTip1.SetToolTip(this.LblStrikeout, "删除线");
|
||||
this.LblStrikeout.Click += new System.EventHandler(this.LblStrikeout_Click);
|
||||
//
|
||||
// LblUnderline
|
||||
//
|
||||
this.LblUnderline.AutoSize = true;
|
||||
this.LblUnderline.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblUnderline.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
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.LblUnderline.Location = new System.Drawing.Point(62, 6);
|
||||
this.LblUnderline.Name = "LblUnderline";
|
||||
this.LblUnderline.Size = new System.Drawing.Size(15, 14);
|
||||
this.LblUnderline.TabIndex = 3;
|
||||
this.LblUnderline.Text = "U";
|
||||
this.toolTip1.SetToolTip(this.LblUnderline, "下划线");
|
||||
this.LblUnderline.Click += new System.EventHandler(this.LblUnderline_Click);
|
||||
//
|
||||
// LblItalic
|
||||
//
|
||||
this.LblItalic.AutoSize = true;
|
||||
this.LblItalic.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblItalic.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblItalic.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblItalic.Location = new System.Drawing.Point(36, 6);
|
||||
this.LblItalic.Name = "LblItalic";
|
||||
this.LblItalic.Size = new System.Drawing.Size(15, 14);
|
||||
this.LblItalic.TabIndex = 2;
|
||||
this.LblItalic.Text = "/";
|
||||
this.toolTip1.SetToolTip(this.LblItalic, "斜体");
|
||||
this.LblItalic.Click += new System.EventHandler(this.LblItalic_Click);
|
||||
//
|
||||
// LblBold
|
||||
//
|
||||
this.LblBold.AutoSize = true;
|
||||
this.LblBold.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblBold.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblBold.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblBold.Location = new System.Drawing.Point(10, 6);
|
||||
this.LblBold.Name = "LblBold";
|
||||
this.LblBold.Size = new System.Drawing.Size(15, 14);
|
||||
this.LblBold.TabIndex = 1;
|
||||
this.LblBold.Text = "B";
|
||||
this.toolTip1.SetToolTip(this.LblBold, "加粗");
|
||||
this.LblBold.Click += new System.EventHandler(this.LblBold_Click);
|
||||
//
|
||||
// timer1
|
||||
//
|
||||
this.timer1.Interval = 400;
|
||||
this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
|
||||
//
|
||||
// LblImage
|
||||
//
|
||||
this.LblImage.AutoSize = true;
|
||||
this.LblImage.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblImage.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblImage.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblImage.Location = new System.Drawing.Point(153, 6);
|
||||
this.LblImage.Name = "LblImage";
|
||||
this.LblImage.Size = new System.Drawing.Size(22, 14);
|
||||
this.LblImage.TabIndex = 6;
|
||||
this.LblImage.Text = "图";
|
||||
this.toolTip1.SetToolTip(this.LblImage, "插入图片");
|
||||
this.LblImage.Click += new System.EventHandler(this.LblImage_Click);
|
||||
//
|
||||
// openFileDialog1
|
||||
//
|
||||
this.openFileDialog1.Filter = "图片|*.jpg;*.bmp;*.gif;*.png";
|
||||
//
|
||||
// FrmSticky
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.ClientSize = new System.Drawing.Size(351, 322);
|
||||
this.Controls.Add(this.txtContent);
|
||||
this.Controls.Add(this.PnlBottom);
|
||||
this.Controls.Add(this.PnlTop);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "FrmSticky";
|
||||
this.Padding = new System.Windows.Forms.Padding(3);
|
||||
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.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);
|
||||
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.txtContent = new System.Windows.Forms.RichTextBox();
|
||||
this.MenuNote = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.撤销ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.重做ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
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.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.全选ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
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.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem10 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem11 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem12 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem13 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.插入ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.插入时间ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.PnlTop = new System.Windows.Forms.Panel();
|
||||
this.LblTopMost = new System.Windows.Forms.Label();
|
||||
this.LblClose = new System.Windows.Forms.Label();
|
||||
this.LblAdd = new System.Windows.Forms.Label();
|
||||
this.PnlBottom = new System.Windows.Forms.Panel();
|
||||
this.LblImage = new System.Windows.Forms.Label();
|
||||
this.LblBullet = new System.Windows.Forms.Label();
|
||||
this.LblStrikeout = new System.Windows.Forms.Label();
|
||||
this.LblUnderline = new System.Windows.Forms.Label();
|
||||
this.LblItalic = new System.Windows.Forms.Label();
|
||||
this.LblBold = new System.Windows.Forms.Label();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.colorDialog1 = new System.Windows.Forms.ColorDialog();
|
||||
this.fontDialog1 = new System.Windows.Forms.FontDialog();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.靠边隐藏ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.MenuNote.SuspendLayout();
|
||||
this.PnlTop.SuspendLayout();
|
||||
this.PnlBottom.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// 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.ContextMenuStrip = this.MenuNote;
|
||||
this.txtContent.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtContent.Location = new System.Drawing.Point(3, 32);
|
||||
this.txtContent.Name = "txtContent";
|
||||
this.txtContent.Size = new System.Drawing.Size(345, 262);
|
||||
this.txtContent.TabIndex = 0;
|
||||
this.txtContent.Text = "";
|
||||
this.txtContent.TextChanged += new System.EventHandler(this.txtContent_TextChanged);
|
||||
//
|
||||
// MenuNote
|
||||
//
|
||||
this.MenuNote.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.撤销ToolStripMenuItem,
|
||||
this.重做ToolStripMenuItem,
|
||||
this.toolStripMenuItem1,
|
||||
this.剪切ToolStripMenuItem,
|
||||
this.复制ToolStripMenuItem,
|
||||
this.粘贴ToolStripMenuItem,
|
||||
this.删除ToolStripMenuItem,
|
||||
this.toolStripMenuItem2,
|
||||
this.全选ToolStripMenuItem,
|
||||
this.toolStripMenuItem3,
|
||||
this.字体ToolStripMenuItem,
|
||||
this.字体颜色ToolStripMenuItem,
|
||||
this.背景颜色ToolStripMenuItem,
|
||||
this.透明度ToolStripMenuItem,
|
||||
this.靠边隐藏ToolStripMenuItem,
|
||||
this.toolStripMenuItem4,
|
||||
this.插入ToolStripMenuItem});
|
||||
this.MenuNote.Name = "MenuNote";
|
||||
this.MenuNote.Size = new System.Drawing.Size(181, 336);
|
||||
this.MenuNote.Opening += new System.ComponentModel.CancelEventHandler(this.MenuNote_Opening);
|
||||
//
|
||||
// 撤销ToolStripMenuItem
|
||||
//
|
||||
this.撤销ToolStripMenuItem.Name = "撤销ToolStripMenuItem";
|
||||
this.撤销ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Z";
|
||||
this.撤销ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.撤销ToolStripMenuItem.Text = "撤销";
|
||||
this.撤销ToolStripMenuItem.Click += new System.EventHandler(this.撤销ToolStripMenuItem_Click);
|
||||
//
|
||||
// 重做ToolStripMenuItem
|
||||
//
|
||||
this.重做ToolStripMenuItem.Name = "重做ToolStripMenuItem";
|
||||
this.重做ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Y";
|
||||
this.重做ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.重做ToolStripMenuItem.Text = "重做";
|
||||
this.重做ToolStripMenuItem.Click += new System.EventHandler(this.重做ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem1
|
||||
//
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// 剪切ToolStripMenuItem
|
||||
//
|
||||
this.剪切ToolStripMenuItem.Name = "剪切ToolStripMenuItem";
|
||||
this.剪切ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+X";
|
||||
this.剪切ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.剪切ToolStripMenuItem.Text = "剪切";
|
||||
this.剪切ToolStripMenuItem.Click += new System.EventHandler(this.剪切ToolStripMenuItem_Click);
|
||||
//
|
||||
// 复制ToolStripMenuItem
|
||||
//
|
||||
this.复制ToolStripMenuItem.Name = "复制ToolStripMenuItem";
|
||||
this.复制ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+C";
|
||||
this.复制ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.复制ToolStripMenuItem.Text = "复制";
|
||||
this.复制ToolStripMenuItem.Click += new System.EventHandler(this.复制ToolStripMenuItem_Click);
|
||||
//
|
||||
// 粘贴ToolStripMenuItem
|
||||
//
|
||||
this.粘贴ToolStripMenuItem.Name = "粘贴ToolStripMenuItem";
|
||||
this.粘贴ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+V";
|
||||
this.粘贴ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.粘贴ToolStripMenuItem.Text = "粘贴";
|
||||
this.粘贴ToolStripMenuItem.Click += new System.EventHandler(this.粘贴ToolStripMenuItem_Click);
|
||||
//
|
||||
// 删除ToolStripMenuItem
|
||||
//
|
||||
this.删除ToolStripMenuItem.Name = "删除ToolStripMenuItem";
|
||||
this.删除ToolStripMenuItem.ShortcutKeyDisplayString = "Delete";
|
||||
this.删除ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.删除ToolStripMenuItem.Text = "删除";
|
||||
this.删除ToolStripMenuItem.Click += new System.EventHandler(this.删除ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem2
|
||||
//
|
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// 全选ToolStripMenuItem
|
||||
//
|
||||
this.全选ToolStripMenuItem.Name = "全选ToolStripMenuItem";
|
||||
this.全选ToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+A";
|
||||
this.全选ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.全选ToolStripMenuItem.Text = "全选";
|
||||
this.全选ToolStripMenuItem.Click += new System.EventHandler(this.全选ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem3
|
||||
//
|
||||
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
||||
this.toolStripMenuItem3.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// 字体ToolStripMenuItem
|
||||
//
|
||||
this.字体ToolStripMenuItem.Name = "字体ToolStripMenuItem";
|
||||
this.字体ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.字体ToolStripMenuItem.Text = "字体";
|
||||
this.字体ToolStripMenuItem.Click += new System.EventHandler(this.字体ToolStripMenuItem_Click);
|
||||
//
|
||||
// 字体颜色ToolStripMenuItem
|
||||
//
|
||||
this.字体颜色ToolStripMenuItem.Name = "字体颜色ToolStripMenuItem";
|
||||
this.字体颜色ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.字体颜色ToolStripMenuItem.Text = "字体颜色";
|
||||
this.字体颜色ToolStripMenuItem.Click += new System.EventHandler(this.字体颜色ToolStripMenuItem_Click);
|
||||
//
|
||||
// 背景颜色ToolStripMenuItem
|
||||
//
|
||||
this.背景颜色ToolStripMenuItem.Name = "背景颜色ToolStripMenuItem";
|
||||
this.背景颜色ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.背景颜色ToolStripMenuItem.Text = "便笺背景颜色";
|
||||
this.背景颜色ToolStripMenuItem.Click += new System.EventHandler(this.背景颜色ToolStripMenuItem_Click);
|
||||
//
|
||||
// 透明度ToolStripMenuItem
|
||||
//
|
||||
this.透明度ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.不透明ToolStripMenuItem,
|
||||
this.toolStripMenuItem5,
|
||||
this.toolStripMenuItem7,
|
||||
this.toolStripMenuItem8,
|
||||
this.toolStripMenuItem9,
|
||||
this.toolStripMenuItem10,
|
||||
this.toolStripMenuItem11,
|
||||
this.toolStripMenuItem12,
|
||||
this.toolStripMenuItem13});
|
||||
this.透明度ToolStripMenuItem.Name = "透明度ToolStripMenuItem";
|
||||
this.透明度ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.透明度ToolStripMenuItem.Text = "透明度";
|
||||
//
|
||||
// 不透明ToolStripMenuItem
|
||||
//
|
||||
this.不透明ToolStripMenuItem.Name = "不透明ToolStripMenuItem";
|
||||
this.不透明ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.不透明ToolStripMenuItem.Text = "不透明";
|
||||
this.不透明ToolStripMenuItem.Click += new System.EventHandler(this.不透明ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem5
|
||||
//
|
||||
this.toolStripMenuItem5.Name = "toolStripMenuItem5";
|
||||
this.toolStripMenuItem5.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// toolStripMenuItem7
|
||||
//
|
||||
this.toolStripMenuItem7.Name = "toolStripMenuItem7";
|
||||
this.toolStripMenuItem7.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItem7.Text = "60%";
|
||||
this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click);
|
||||
//
|
||||
// toolStripMenuItem8
|
||||
//
|
||||
this.toolStripMenuItem8.Name = "toolStripMenuItem8";
|
||||
this.toolStripMenuItem8.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItem8.Text = "70%";
|
||||
this.toolStripMenuItem8.Click += new System.EventHandler(this.toolStripMenuItem8_Click);
|
||||
//
|
||||
// toolStripMenuItem9
|
||||
//
|
||||
this.toolStripMenuItem9.Name = "toolStripMenuItem9";
|
||||
this.toolStripMenuItem9.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItem9.Text = "75%";
|
||||
this.toolStripMenuItem9.Click += new System.EventHandler(this.toolStripMenuItem9_Click);
|
||||
//
|
||||
// toolStripMenuItem10
|
||||
//
|
||||
this.toolStripMenuItem10.Name = "toolStripMenuItem10";
|
||||
this.toolStripMenuItem10.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItem10.Text = "80%";
|
||||
this.toolStripMenuItem10.Click += new System.EventHandler(this.toolStripMenuItem10_Click);
|
||||
//
|
||||
// toolStripMenuItem11
|
||||
//
|
||||
this.toolStripMenuItem11.Name = "toolStripMenuItem11";
|
||||
this.toolStripMenuItem11.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItem11.Text = "85%";
|
||||
this.toolStripMenuItem11.Click += new System.EventHandler(this.toolStripMenuItem11_Click);
|
||||
//
|
||||
// toolStripMenuItem12
|
||||
//
|
||||
this.toolStripMenuItem12.Name = "toolStripMenuItem12";
|
||||
this.toolStripMenuItem12.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItem12.Text = "90%";
|
||||
this.toolStripMenuItem12.Click += new System.EventHandler(this.toolStripMenuItem12_Click);
|
||||
//
|
||||
// toolStripMenuItem13
|
||||
//
|
||||
this.toolStripMenuItem13.Name = "toolStripMenuItem13";
|
||||
this.toolStripMenuItem13.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItem13.Text = "95%";
|
||||
this.toolStripMenuItem13.Click += new System.EventHandler(this.toolStripMenuItem13_Click);
|
||||
//
|
||||
// toolStripMenuItem4
|
||||
//
|
||||
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
|
||||
this.toolStripMenuItem4.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// 插入ToolStripMenuItem
|
||||
//
|
||||
this.插入ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.插入时间ToolStripMenuItem});
|
||||
this.插入ToolStripMenuItem.Name = "插入ToolStripMenuItem";
|
||||
this.插入ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.插入ToolStripMenuItem.Text = "插入";
|
||||
//
|
||||
// 插入时间ToolStripMenuItem
|
||||
//
|
||||
this.插入时间ToolStripMenuItem.Name = "插入时间ToolStripMenuItem";
|
||||
this.插入时间ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.插入时间ToolStripMenuItem.Text = "插入时间";
|
||||
this.插入时间ToolStripMenuItem.Click += new System.EventHandler(this.插入时间ToolStripMenuItem_Click);
|
||||
//
|
||||
// PnlTop
|
||||
//
|
||||
this.PnlTop.Controls.Add(this.LblTopMost);
|
||||
this.PnlTop.Controls.Add(this.LblClose);
|
||||
this.PnlTop.Controls.Add(this.LblAdd);
|
||||
this.PnlTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.PnlTop.Location = new System.Drawing.Point(3, 3);
|
||||
this.PnlTop.Name = "PnlTop";
|
||||
this.PnlTop.Size = new System.Drawing.Size(345, 29);
|
||||
this.PnlTop.TabIndex = 1;
|
||||
//
|
||||
// LblTopMost
|
||||
//
|
||||
this.LblTopMost.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.LblTopMost.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblTopMost.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblTopMost.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblTopMost.Location = new System.Drawing.Point(298, 5);
|
||||
this.LblTopMost.Name = "LblTopMost";
|
||||
this.LblTopMost.Size = new System.Drawing.Size(20, 19);
|
||||
this.LblTopMost.TabIndex = 2;
|
||||
this.LblTopMost.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.toolTip1.SetToolTip(this.LblTopMost, "置顶/取消置顶");
|
||||
this.LblTopMost.Click += new System.EventHandler(this.LblTopMost_Click);
|
||||
//
|
||||
// LblClose
|
||||
//
|
||||
this.LblClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.LblClose.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblClose.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblClose.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblClose.Location = new System.Drawing.Point(324, 5);
|
||||
this.LblClose.Name = "LblClose";
|
||||
this.LblClose.Size = new System.Drawing.Size(20, 19);
|
||||
this.LblClose.TabIndex = 1;
|
||||
this.LblClose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.toolTip1.SetToolTip(this.LblClose, "关闭");
|
||||
this.LblClose.Click += new System.EventHandler(this.LblClose_Click);
|
||||
//
|
||||
// LblAdd
|
||||
//
|
||||
this.LblAdd.BackColor = System.Drawing.Color.Transparent;
|
||||
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.Location = new System.Drawing.Point(6, 4);
|
||||
this.LblAdd.Name = "LblAdd";
|
||||
this.LblAdd.Size = new System.Drawing.Size(20, 19);
|
||||
this.LblAdd.TabIndex = 0;
|
||||
this.LblAdd.Text = "+";
|
||||
this.LblAdd.Click += new System.EventHandler(this.LblAdd_Click);
|
||||
//
|
||||
// PnlBottom
|
||||
//
|
||||
this.PnlBottom.Controls.Add(this.LblImage);
|
||||
this.PnlBottom.Controls.Add(this.LblBullet);
|
||||
this.PnlBottom.Controls.Add(this.LblStrikeout);
|
||||
this.PnlBottom.Controls.Add(this.LblUnderline);
|
||||
this.PnlBottom.Controls.Add(this.LblItalic);
|
||||
this.PnlBottom.Controls.Add(this.LblBold);
|
||||
this.PnlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.PnlBottom.Location = new System.Drawing.Point(3, 294);
|
||||
this.PnlBottom.Name = "PnlBottom";
|
||||
this.PnlBottom.Size = new System.Drawing.Size(345, 25);
|
||||
this.PnlBottom.TabIndex = 2;
|
||||
//
|
||||
// LblImage
|
||||
//
|
||||
this.LblImage.AutoSize = true;
|
||||
this.LblImage.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblImage.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblImage.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblImage.Location = new System.Drawing.Point(153, 6);
|
||||
this.LblImage.Name = "LblImage";
|
||||
this.LblImage.Size = new System.Drawing.Size(22, 14);
|
||||
this.LblImage.TabIndex = 6;
|
||||
this.LblImage.Text = "图";
|
||||
this.toolTip1.SetToolTip(this.LblImage, "插入图片");
|
||||
this.LblImage.Click += new System.EventHandler(this.LblImage_Click);
|
||||
//
|
||||
// LblBullet
|
||||
//
|
||||
this.LblBullet.AutoSize = true;
|
||||
this.LblBullet.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblBullet.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblBullet.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblBullet.Location = new System.Drawing.Point(125, 6);
|
||||
this.LblBullet.Name = "LblBullet";
|
||||
this.LblBullet.Size = new System.Drawing.Size(22, 14);
|
||||
this.LblBullet.TabIndex = 5;
|
||||
this.LblBullet.Text = "┇";
|
||||
this.toolTip1.SetToolTip(this.LblBullet, "项目符号");
|
||||
this.LblBullet.Click += new System.EventHandler(this.LblBullet_Click);
|
||||
//
|
||||
// LblStrikeout
|
||||
//
|
||||
this.LblStrikeout.AutoSize = true;
|
||||
this.LblStrikeout.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblStrikeout.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
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.LblStrikeout.Location = new System.Drawing.Point(88, 6);
|
||||
this.LblStrikeout.Name = "LblStrikeout";
|
||||
this.LblStrikeout.Size = new System.Drawing.Size(31, 14);
|
||||
this.LblStrikeout.TabIndex = 4;
|
||||
this.LblStrikeout.Text = "abc";
|
||||
this.toolTip1.SetToolTip(this.LblStrikeout, "删除线");
|
||||
this.LblStrikeout.Click += new System.EventHandler(this.LblStrikeout_Click);
|
||||
//
|
||||
// LblUnderline
|
||||
//
|
||||
this.LblUnderline.AutoSize = true;
|
||||
this.LblUnderline.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblUnderline.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
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.LblUnderline.Location = new System.Drawing.Point(62, 6);
|
||||
this.LblUnderline.Name = "LblUnderline";
|
||||
this.LblUnderline.Size = new System.Drawing.Size(15, 14);
|
||||
this.LblUnderline.TabIndex = 3;
|
||||
this.LblUnderline.Text = "U";
|
||||
this.toolTip1.SetToolTip(this.LblUnderline, "下划线");
|
||||
this.LblUnderline.Click += new System.EventHandler(this.LblUnderline_Click);
|
||||
//
|
||||
// LblItalic
|
||||
//
|
||||
this.LblItalic.AutoSize = true;
|
||||
this.LblItalic.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblItalic.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblItalic.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblItalic.Location = new System.Drawing.Point(36, 6);
|
||||
this.LblItalic.Name = "LblItalic";
|
||||
this.LblItalic.Size = new System.Drawing.Size(15, 14);
|
||||
this.LblItalic.TabIndex = 2;
|
||||
this.LblItalic.Text = "/";
|
||||
this.toolTip1.SetToolTip(this.LblItalic, "斜体");
|
||||
this.LblItalic.Click += new System.EventHandler(this.LblItalic_Click);
|
||||
//
|
||||
// LblBold
|
||||
//
|
||||
this.LblBold.AutoSize = true;
|
||||
this.LblBold.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LblBold.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblBold.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.LblBold.Location = new System.Drawing.Point(10, 6);
|
||||
this.LblBold.Name = "LblBold";
|
||||
this.LblBold.Size = new System.Drawing.Size(15, 14);
|
||||
this.LblBold.TabIndex = 1;
|
||||
this.LblBold.Text = "B";
|
||||
this.toolTip1.SetToolTip(this.LblBold, "加粗");
|
||||
this.LblBold.Click += new System.EventHandler(this.LblBold_Click);
|
||||
//
|
||||
// timer1
|
||||
//
|
||||
this.timer1.Interval = 400;
|
||||
this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
|
||||
//
|
||||
// openFileDialog1
|
||||
//
|
||||
this.openFileDialog1.Filter = "图片|*.jpg;*.bmp;*.gif;*.png";
|
||||
//
|
||||
// 靠边隐藏ToolStripMenuItem
|
||||
//
|
||||
this.靠边隐藏ToolStripMenuItem.Checked = true;
|
||||
this.靠边隐藏ToolStripMenuItem.CheckOnClick = true;
|
||||
this.靠边隐藏ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.靠边隐藏ToolStripMenuItem.Name = "靠边隐藏ToolStripMenuItem";
|
||||
this.靠边隐藏ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.靠边隐藏ToolStripMenuItem.Text = "靠边隐藏";
|
||||
//
|
||||
// FrmSticky
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.ClientSize = new System.Drawing.Size(351, 322);
|
||||
this.Controls.Add(this.txtContent);
|
||||
this.Controls.Add(this.PnlBottom);
|
||||
this.Controls.Add(this.PnlTop);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "FrmSticky";
|
||||
this.Padding = new System.Windows.Forms.Padding(3);
|
||||
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
|
||||
|
@ -533,6 +545,7 @@
|
|||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem13;
|
||||
private System.Windows.Forms.Label LblBullet;
|
||||
private System.Windows.Forms.Label LblImage;
|
||||
private System.Windows.Forms.OpenFileDialog openFileDialog1;
|
||||
private System.Windows.Forms.OpenFileDialog openFileDialog1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 靠边隐藏ToolStripMenuItem;
|
||||
}
|
||||
}
|
|
@ -6,13 +6,16 @@ using System.ComponentModel;
|
|||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TimeClock.DbOp
|
||||
{
|
||||
public partial class FrmSticky : Form
|
||||
{
|
||||
{
|
||||
internal AnchorStyles StopAanhor = AnchorStyles.Top;
|
||||
bool hideFlag = false;
|
||||
public FrmSticky()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
@ -259,7 +262,8 @@ namespace TimeClock.DbOp
|
|||
mStor.SetAttrValue("Width", this.Width);
|
||||
mStor.SetAttrValue("Height", this. Height);
|
||||
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("editTime", DateTime.Now);
|
||||
DataProvider mydb = new DataProvider();
|
||||
|
@ -313,14 +317,21 @@ namespace TimeClock.DbOp
|
|||
ryCommon.Storage mStor = new ryCommon.Storage(row["Setting"].ToString());
|
||||
mStor.SelectNodeBySet();
|
||||
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.Opacity = mStor.GetAttrValue("Opacity", 0d);
|
||||
try
|
||||
{
|
||||
StickyBackColor = ColorTranslator.FromHtml(mStor.GetAttrValue("StickyBackColor"));
|
||||
}
|
||||
catch { }
|
||||
catch { }
|
||||
this.靠边隐藏ToolStripMenuItem.Checked = mStor.GetAttrValue("PullOverHide", true);
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@ -365,7 +376,8 @@ namespace TimeClock.DbOp
|
|||
dt_change = DateTime.Now;
|
||||
isChange = true;
|
||||
}
|
||||
|
||||
[DllImport("User32.dll")]
|
||||
private static extern bool PtInRect(ref Rectangle Rects, Point lpPoint);
|
||||
private void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if(isChange && dt_change.AddMilliseconds(delayTime)<DateTime.Now)
|
||||
|
@ -383,9 +395,32 @@ namespace TimeClock.DbOp
|
|||
if (PnlTop.Visible) PnlTop.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)
|
||||
{
|
||||
txtContent.SelectedText = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
|
@ -463,6 +498,10 @@ namespace TimeClock.DbOp
|
|||
MessageBox.Show("图片无效。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void FrmSticky_SizeChanged(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,144 +1,141 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, 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="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<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>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: 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:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<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:sequence>
|
||||
<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="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="MenuNote.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>106, 17</value>
|
||||
</metadata>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="colorDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>204, 17</value>
|
||||
</metadata>
|
||||
<metadata name="fontDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>331, 17</value>
|
||||
</metadata>
|
||||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>453, 17</value>
|
||||
</metadata>
|
||||
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>543, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>72</value>
|
||||
</metadata>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, 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="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<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>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: 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:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<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:sequence>
|
||||
<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="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="MenuNote.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>106, 17</value>
|
||||
</metadata>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="colorDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>204, 17</value>
|
||||
</metadata>
|
||||
<metadata name="fontDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>331, 17</value>
|
||||
</metadata>
|
||||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>453, 17</value>
|
||||
</metadata>
|
||||
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>543, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>72</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.2103.1001")]
|
||||
[assembly: AssemblyFileVersion("1.0.2103.1001")]
|
||||
[assembly: AssemblyVersion("1.0.2110.1601")]
|
||||
[assembly: AssemblyFileVersion("1.0.2110.1601")]
|
|
@ -73,6 +73,7 @@
|
|||
<Compile Include="API\RichImg.cs" />
|
||||
<Compile Include="API\SoundPlay.cs" />
|
||||
<Compile Include="API\SpVoice.cs" />
|
||||
<Compile Include="API\TinyBook.cs" />
|
||||
<Compile Include="DbOp\Custom.cs" />
|
||||
<Compile Include="DbOp\CustomShow\DJSDayUI.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
|
|
Loading…
Reference in New Issue
Block a user