init lserp cs 5.0

This commit is contained in:
cyf
2026-07-10 15:25:05 +08:00
commit 90f3fda86a
3799 changed files with 976868 additions and 0 deletions
@@ -0,0 +1,54 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyFormDesinger", "MyFormDesinger\MyFormDesinger.csproj", "{03DF5694-BC60-4030-B66E-0304F0A63059}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.DevFx", "..\Lskj.DevFx\Lskj.DevFx.csproj", "{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.DBUtility", "..\..\..\..\lskj.DBUtility\Lskj.DBUtility.csproj", "{A0161C67-B49F-4637-AC7B-228DFCF8862A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{03DF5694-BC60-4030-B66E-0304F0A63059}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{03DF5694-BC60-4030-B66E-0304F0A63059}.Debug|Any CPU.Build.0 = Debug|Any CPU
{03DF5694-BC60-4030-B66E-0304F0A63059}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{03DF5694-BC60-4030-B66E-0304F0A63059}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{03DF5694-BC60-4030-B66E-0304F0A63059}.Debug|x86.ActiveCfg = Debug|Any CPU
{03DF5694-BC60-4030-B66E-0304F0A63059}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03DF5694-BC60-4030-B66E-0304F0A63059}.Release|Any CPU.Build.0 = Release|Any CPU
{03DF5694-BC60-4030-B66E-0304F0A63059}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{03DF5694-BC60-4030-B66E-0304F0A63059}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{03DF5694-BC60-4030-B66E-0304F0A63059}.Release|x86.ActiveCfg = Release|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Debug|x86.ActiveCfg = Debug|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Release|Any CPU.Build.0 = Release|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{CA9189D9-E448-4FAE-9F14-6DF1525DDA0E}.Release|x86.ActiveCfg = Release|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Debug|x86.ActiveCfg = Debug|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Release|Any CPU.Build.0 = Release|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{A0161C67-B49F-4637-AC7B-228DFCF8862A}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,156 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;
using System.Reflection;
using Lskj.Common;
using Lskj.PubUtils;
using Lskj.MyControl;
using Lskj.MyControl.LookUpAdd;
using System.Drawing;
namespace MyFormDesinger
{
class ControlHelper
{
public static Control CreateControl(string userName, string ctrName, int fileTypeId)
{
try
{
Control ctrl = null;
switch (fileTypeId)
{
case ControlType.LabComboxValue:
case ControlType.LabComboxText:
case ControlType.LabComboxTextParam:
case ControlType.LabComboxValueParam:
ctrl = new LabelComboxEx();
(ctrl as LabelComboxEx).LabelText = userName;
break;
case ControlType.LabDate:
case ControlType.LabDateTime:
case ControlType.LabDateTimeShort:
case ControlType.LabTime:
case ControlType.LabShortTime:
ctrl = new LabelDateEx();
(ctrl as LabelDateEx).LabelText = userName;
break;
case ControlType.LabAutoSeacherValue:
case ControlType.LabAutoSeacherText:
ctrl = new LabelAutoSearcherEx();
(ctrl as LabelAutoSearcherEx).LabelText = userName;
break;
case ControlType.LabRemark:
ctrl = new LabelTextarea();
(ctrl as LabelTextarea).LabelText = userName;
break;
case ControlType.LabQQ:
ctrl = new LabelTextQQEx();
(ctrl as LabelTextQQEx).LabelText = userName;
break;
case ControlType.LabWWW:
ctrl = new LabelTextWwwEx();
(ctrl as LabelTextWwwEx).LabelText = userName;
break;
case ControlType.LabPic:
ctrl = new LabelPicEx();
(ctrl as LabelPicEx).LabelText = userName;
break;
case ControlType.LabTextInt:
ctrl = new LabelTextEx();
(ctrl as LabelTextEx).LabelText= userName;
break;
case ControlType.LabCheckComboxValue:
case ControlType.LabCheckComboxText:
ctrl = new LabelCheckComboxEx();
(ctrl as LabelCheckComboxEx).LabelText = userName;
break;
case ControlType.LabCheckAutoSeacherValue:
case ControlType.LabCheckAutoSeacherText:
ctrl = new LabelCheckAutoSearcherEx();
(ctrl as LabelCheckAutoSearcherEx).LabelText = userName;
break;
case ControlType.LabCheckDateEx:
case ControlType.LabCheckDateTimeEx:
case ControlType.LabCheckDateTimeShort:
case ControlType.LabCheckShortTime:
case ControlType.LabCheckTime:
ctrl = new LabelCheckDateEx();
(ctrl as LabelCheckDateEx).LabelText = userName;
break;
case 8888:
ctrl = new GroupBox();
ctrl.Name = userName;
ctrl.Tag = 8888;
ctrl.Text = "分组名称";
break;
case 8889:
ctrl = new Panel();
ctrl.Name = userName;
ctrl.Tag = 8889;
ctrl.BackColor = Color.LightGreen;
ctrl.Height = 24;
ctrl.Width = 100;
ctrl.Text = "分页名称";
break;
case ControlType.LabMultiSelectText:
case ControlType.LabMultiSelectValue:
ctrl = new LabelLookUpAdd();
(ctrl as LabelLookUpAdd).LabelText = userName;
break;
case ControlType.LabCheckBox:
ctrl = new LabelCheckBox();
(ctrl as LabelCheckBox).LabelText = userName;
break;
#region jp
case ControlType.LabCalcText:
ctrl = new LabelCalcTextEx();
(ctrl as LabelCalcTextEx).LabelText = userName;
break;
case ControlType.LabText:
case ControlType.LabPhone:
case ControlType.LabMap:
case ControlType.LabSacn:
ctrl = new LabelTextEx();
(ctrl as LabelTextEx).LabelText = userName;
break;
case ControlType.LabComboxCheckListValue:
case ControlType.LabComboxCheckListText:
case ControlType. LabComboxInputParam:
ctrl = new LabelCheckComboxEx();
(ctrl as LabelCheckComboxEx).LabelText = userName;
break;
case ControlType.LabMemoEdit:
ctrl = new LabelTextarea();
(ctrl as LabelTextarea).LabelText = userName;
break;
case ControlType.LabMultiSelectTextParam:
case ControlType.LabMultiSelectValueParam:
ctrl = new LabelLookUpAdd();
(ctrl as LabelLookUpAdd).LabelText = userName;
break;
case ControlType.LabPicEx:
ctrl = new LabelPicEx();
(ctrl as LabelPicEx).LabelText = userName;
break;
#endregion
default:
ctrl = new LabelTextEx();
(ctrl as LabelTextEx).LabelText = userName;
break;
}
if (ctrl != null)
{
ctrl.Name = ctrName;
}
return ctrl;
}
catch (Exception ex) //创建失败
{
MessageBox.Show(ex.Message);
return new Control();
}
}
}
}
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
namespace MyFormDesinger
{
public class ControlParentProperty
{
private Control ctr;
public ControlParentProperty() { }
public ControlParentProperty(Control _ctr)
{
this.ctr = _ctr;
}
private int width;
[Description("宽度")]
[DisplayName("宽度")]
public int Width
{
get { return width; }
set
{
width = value;
ctr.Width = value;
}
}
private int height;
[Description("高度")]
[DisplayName("高度")]
public int Height
{
get { return height; }
set
{
height = value;
ctr.Height = value;
}
}
}
}
@@ -0,0 +1,97 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
namespace MyFormDesinger {
public class ControlProperty {
private Control ctr;
public ControlProperty() { }
public ControlProperty(Control _ctr) {
this.ctr = _ctr;
}
private int top;
[Description("上边距")]
[DisplayName("上边距")]
public int Top {
get { return top; }
set {
top = value;
ctr.Top = value;
}
}
private int left;
[Description("左边距")]
[DisplayName("左边距")]
public int Left {
get { return left; }
set {
left = value;
ctr.Left = value;
}
}
private int width;
[Description("宽度")]
[DisplayName("宽度")]
public int Width {
get { return width; }
set {
width = value;
ctr.Width = value;
}
}
private int height;
[Description("高度")]
[DisplayName("高度")]
public int Height {
get { return height; }
set {
height = value;
ctr.Height = value;
}
}
private string groupName;
[Description("分组名称")]
[DisplayName("分组名称")]
public string GroupName {
get { return groupName; }
set {
groupName = value;
if (ctr is GroupBox)
ctr.Text = value;
}
}
private string name;
[Description("控件名称")]
[DisplayName("控件名称")]
public string Name {
get { return name; }
set {
name = value;
ctr.Name = value;
}
}
private int tabIndex;
[Description("TAB次序")]
[DisplayName("TAB次序")]
public int TabIndex
{
get { return tabIndex; }
set
{
tabIndex = value;
ctr.TabIndex = value;
}
}
}
}
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;
namespace MyFormDesinger
{
/// <summary>
/// 消息过滤器
/// </summary>
class MessageFilter : IMessageFilter
{
HostFrame _thehost;
DesignerControl _theDesignerBoard;
public MessageFilter(HostFrame hostFrame, DesignerControl designer)
{
_thehost = hostFrame;
_theDesignerBoard = designer;
}
#region IMessageFilter
public bool PreFilterMessage(ref Message m) //过滤所有控件的WM_PAINT消息
{
Control ctrl = (Control)Control.FromHandle(m.HWnd);
if (_thehost != null && _theDesignerBoard != null && _thehost.Controls.Contains(ctrl) && m.Msg == 0x000F) // 0x000F == WM_PAINT
{
_theDesignerBoard.Refresh();
return true;
}
return false;
}
#endregion
}
}
@@ -0,0 +1,145 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace MyFormDesinger
{
/// <summary>
/// 选中控件时,周围出现的方框
/// </summary>
class Recter
{
Rectangle _rect = new Rectangle();
bool _isform = false; //是否为窗体周围的方框(如果是,则位置不可改变,且只有从下、右、右下三个方向改变大小)
public Rectangle Rect
{
get
{
return _rect;
}
set
{
_rect = value;
}
}
public bool IsForm
{
set
{
_isform = value;
}
}
public Recter()
{
}
/// <summary>
/// 绘制方框
/// </summary>
/// <param name="g"></param>
public void Draw(Graphics g)
{
Rectangle rect = _rect;
using (Pen p = new Pen(Brushes.Black,1))
{
p.DashStyle = DashStyle.Dot;
rect.Inflate(new Size(+1, +1));
g.DrawRectangle(p, rect); //方框
p.DashStyle = DashStyle.Solid;
//8个方块
g.FillRectangle(Brushes.White, new Rectangle(rect.Left - 6, rect.Top - 6, 6, 6));
g.FillRectangle(Brushes.White, new Rectangle(rect.Left + rect.Width / 2 - 3, rect.Top - 6, 6, 6));
g.FillRectangle(Brushes.White, new Rectangle(rect.Left + rect.Width, rect.Top - 6, 6, 6));
g.FillRectangle(Brushes.White, new Rectangle(rect.Left - 6, rect.Top + rect.Height / 2 - 3, 6, 6));
g.FillRectangle(Brushes.White, new Rectangle(rect.Left - 6, rect.Top + rect.Height, 6, 6));
g.FillRectangle(Brushes.White, new Rectangle(rect.Left + rect.Width, rect.Top + rect.Height / 2 - 3, 6, 6));
g.FillRectangle(Brushes.White, new Rectangle(rect.Left + rect.Width / 2 - 3, rect.Top + rect.Height, 6, 6));
g.FillRectangle(Brushes.White, new Rectangle(rect.Left + rect.Width, rect.Top + rect.Height, 6, 6));
g.DrawRectangle(p, new Rectangle(rect.Left - 6, rect.Top - 6, 6, 6));
g.DrawRectangle(p, new Rectangle(rect.Left + rect.Width / 2 - 3, rect.Top - 6, 6, 6));
g.DrawRectangle(p, new Rectangle(rect.Left + rect.Width, rect.Top - 6, 6, 6));
g.DrawRectangle(p, new Rectangle(rect.Left - 6, rect.Top + rect.Height / 2 - 3, 6, 6));
g.DrawRectangle(p, new Rectangle(rect.Left - 6, rect.Top + rect.Height, 6, 6));
g.DrawRectangle(p, new Rectangle(rect.Left + rect.Width, rect.Top + rect.Height / 2 - 3, 6, 6));
g.DrawRectangle(p, new Rectangle(rect.Left + rect.Width / 2 - 3, rect.Top + rect.Height, 6, 6));
g.DrawRectangle(p, new Rectangle(rect.Left + rect.Width, rect.Top + rect.Height, 6, 6));
}
}
/// <summary>
/// 判断鼠标操作类型
/// </summary>
/// <param name="p"></param>
/// <returns></returns>
public DragType GetMouseDragType(Point p)
{
Rectangle _rect = this._rect;
_rect.Inflate(new Size(3, 3));
if (new Rectangle(_rect.Left - 2, _rect.Top - 2, 4, 4).Contains(p) && !_isform)
{
return DragType.LeftTop;
}
if (new Rectangle(_rect.Left + 2, _rect.Top - 2, _rect.Width - 4, 4).Contains(p) && !_isform)
{
return DragType.Top;
}
if (new Rectangle(_rect.Left - 2, _rect.Top + 2, 4, _rect.Height - 4).Contains(p) && !_isform)
{
return DragType.Left;
}
if (new Rectangle(_rect.Left - 2, _rect.Top + _rect.Height - 2, 4, 4).Contains(p) && !_isform)
{
return DragType.LeftBottom;
}
if (new Rectangle(_rect.Left + 2, _rect.Top + _rect.Height - 2, _rect.Width - 4, 4).Contains(p))
{
return DragType.Bottom;
}
if (new Rectangle(_rect.Left + _rect.Width - 2, _rect.Top + _rect.Height - 2, 4, 4).Contains(p))
{
return DragType.RightBottom;
}
if (new Rectangle(_rect.Left + _rect.Width - 2, _rect.Top + 2, 4, _rect.Height - 4).Contains(p))
{
return DragType.Right;
}
if (new Rectangle(_rect.Left + _rect.Width - 2, _rect.Top - 2, 4, 4).Contains(p) && !_isform)
{
return DragType.RightTop;
}
if (new Rectangle(_rect.Left + 2, _rect.Top + 2, _rect.Width - 4, _rect.Height - 4).Contains(p) && !_isform)
{
return DragType.Center;
}
return DragType.None;
}
}
/// <summary>
/// 鼠标操作类型
/// </summary>
enum DragType
{
None,
Left,
Top,
Right,
Bottom,
LeftTop,
RightTop,
LeftBottom,
RightBottom,
Center
}
}
@@ -0,0 +1,23 @@
using System;
using System.Data;
using System.Text;
using Lskj.DBUtility.Provider;
using System.ComponentModel;
using System.Collections.Generic;
using lskj.Model;
namespace lskj.Dao {
/// <summary>
/// Êý¾Ý·ÃÎÊÀàP_systemControlLocationDao
/// </summary>
public class P_systemControlLocationDao : BaseProvider<lskj.Model.P_systemControlLocation> {
public P_systemControlLocationDao()
{
//Model = new lskj.Model.P_systemControlLocation();
}
}
}
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace MyFormDesinger.Dao
{
public class P_systemControlParent
{
/// <summary>
///界面id
/// </summary>
/// <value><c>true</c> if this instance can copy; otherwise, <c>false</c>.</value>
public int id { get; private set; }
/// <summary>
///界面formKey
/// </summary>
/// <value><c>true</c> if this instance can copy; otherwise, <c>false</c>.</value>
public string formKey { get; private set; }
/// <summary>
///界面高度
/// </summary>
/// <value><c>true</c> if this instance can copy; otherwise, <c>false</c>.</value>
public int parentHeight { get; private set; }
/// <summary>
///界面宽度
/// </summary>
/// <value><c>true</c> if this instance can copy; otherwise, <c>false</c>.</value>
public int parentWidth { get; private set; }
public P_systemControlParent(DataRow rowItem)
{
if (rowItem == null) return;
DataColumnCollection columns = rowItem.Table.Columns;
this.id = Convert.ToInt32(rowItem["id"] + "");
this.formKey = columns.Contains("prefix") ? rowItem["prefix"] + "" : string.Empty;
this.parentHeight = Convert.ToInt32(rowItem["masterTable"] + "");
this.parentWidth = Convert.ToInt32(rowItem["detailTable"] + "");
}
}
}
@@ -0,0 +1,23 @@
using System;
using System.Data;
using System.Text;
using Lskj.DevFx.Utils;
using Lskj.DevFx.Core;
using Lskj.DBUtility.Helper;
using Lskj.DBUtility.Provider;
using System.ComponentModel;
using System.Collections.Generic;
namespace lskj.Dao
{
/// <summary>
/// Êý¾Ý·ÃÎÊÀàP_systemControlParentDao¡£
/// </summary>
public class P_systemControlParentDao:BaseProvider<lskj.Model.P_systemControlParent>
{
public P_systemControlParentDao()
{
//Model = new lskj.Model.P_systemControlParent();
}
}
}
@@ -0,0 +1,47 @@
namespace MyFormDesinger
{
partial class DesignerControl
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// DesignerControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Name = "DesignerControl";
this.Size = new System.Drawing.Size(124, 116);
this.ResumeLayout(false);
}
#endregion
}
}
@@ -0,0 +1,140 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MyFormDesinger
{
/// <summary>
/// 设计面板
/// </summary>
public partial class DesignerControl : UserControl
{
public HostFrame _hostFrame; //所有控件的容器
public Overlayer _overlayer; //遮罩层
bool MouseIsDown = false;
Rectangle MouseRect = Rectangle.Empty;
public DesignerControl()
{
InitializeComponent();
_hostFrame = new HostFrame();
_hostFrame.TopLevel = false; //当做子控件添加到设计面板
_hostFrame.Location = new Point(10, 10);
_hostFrame.Text = "商品表单设计";
Controls.Add(_hostFrame);
_hostFrame.Show();
_overlayer = new Overlayer(_hostFrame);
_overlayer.Location = new Point(0, 0);
_overlayer.Dock = DockStyle.Fill;
Controls.Add(_overlayer);
_overlayer.Show();
_overlayer.BringToFront(); //将其设置Z轴最上,接受所有的用户操作,底层的其他控件无法接受用户输入。各位可以注释这条试一下,底层的其他控件(窗体)就能接受鼠标点击
Application.AddMessageFilter(new MessageFilter(_hostFrame, this)); // 过滤控件容器中所有子控件的WM_PAINT消息 减少重绘操作
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
this.MouseDown += new MouseEventHandler(frmMain_MouseDown);
this.MouseMove += new MouseEventHandler(frmMain_MouseMove);
this.MouseUp += new MouseEventHandler(frmMain_MouseUp);
}
void frmMain_MouseUp(object sender, MouseEventArgs e)
{
this.Capture = false;
Cursor.Clip = Rectangle.Empty;
MouseIsDown = false;
DrawRectangle();
foreach (Control ct in this.Controls)
{
// Point ctrlCenter = new Point(ct.Location.X + ct.Width / 2, ct.Location.Y + ct.Height / 2);
//if (ctrlCenter.X > MouseRect.Location.X
// && ctrlCenter.X < MouseRect.Location.X + MouseRect.Width
// && ctrlCenter.Y > MouseRect.Location.Y && ctrlCenter.Y > MouseRect.Location.Y + MouseRect.Height)
if (MouseRect.Contains(ct.Location))
{
if (ct is CheckBox)
{
if (((CheckBox)ct).Checked) //值选中
{
((CheckBox)ct).Checked = false;
}
else
{
((CheckBox)ct).Checked = true;
}
//控件选中
}
}
}
MouseRect = Rectangle.Empty;
}
void frmMain_MouseMove(object sender, MouseEventArgs e)
{
if (MouseIsDown)
ResizeToRectangle(e.Location);
}
void frmMain_MouseDown(object sender, MouseEventArgs e)
{
MouseIsDown = true;
DrawStart(e.Location);
}
private void ResizeToRectangle(Point p)
{
DrawRectangle();
MouseRect.Width = p.X - MouseRect.Left;
MouseRect.Height = p.Y - MouseRect.Top;
DrawRectangle();
}
private void DrawRectangle()
{
Rectangle rect = this.RectangleToScreen(MouseRect);
ControlPaint.DrawReversibleFrame(rect, Color.White, FrameStyle.Dashed);
}
private void DrawStart(Point StartPoint)
{
this.Capture = true;
Cursor.Clip = this.RectangleToScreen(new Rectangle(0, 0, ClientSize.Width, ClientSize.Height));
MouseRect = new Rectangle(StartPoint.X, StartPoint.Y, 0, 0);
}
public DesignerControl(int Width, int Height)
{
_hostFrame = new HostFrame();
_hostFrame.TopLevel = false; //当做子控件添加到设计面板
_hostFrame.Location = new Point(10, 10);
_hostFrame.Height = Height;
_hostFrame.Width = Width;
_hostFrame.Text = "表单设计";
Controls.Add(_hostFrame);
_hostFrame.Show();
_overlayer = new Overlayer(_hostFrame);
_overlayer.Location = new Point(0, 0);
_overlayer.Dock = DockStyle.Fill;
Controls.Add(_overlayer);
_overlayer.Show();
_overlayer.BringToFront(); //将其设置Z轴最上,接受所有的用户操作,底层的其他控件无法接受用户输入。各位可以注释这条试一下,底层的其他控件(窗体)就能接受鼠标点击
Application.AddMessageFilter(new MessageFilter(_hostFrame, this)); // 过滤控件容器中所有子控件的WM_PAINT消息 减少重绘操作
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
this.MouseDown += new MouseEventHandler(frmMain_MouseDown);
this.MouseMove += new MouseEventHandler(frmMain_MouseMove);
this.MouseUp += new MouseEventHandler(frmMain_MouseUp);
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
return base.ProcessCmdKey(ref msg, keyData);
}
}
}
@@ -0,0 +1,120 @@
<?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>
</root>
@@ -0,0 +1,46 @@
namespace MyFormDesinger
{
partial class HostFrame
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// HostFrame
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(747, 506);
this.Name = "HostFrame";
this.Text = "HostFrame";
this.ResumeLayout(false);
}
#endregion
}
}
@@ -0,0 +1,92 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
namespace MyFormDesinger
{
public partial class HostFrame : Form
{
bool MouseIsDown = false;
Rectangle MouseRect = Rectangle.Empty;
public HostFrame()
{
InitializeComponent();
this.MouseDown += new MouseEventHandler(frmMain_MouseDown);
this.MouseMove += new MouseEventHandler(frmMain_MouseMove);
this.MouseUp += new MouseEventHandler(frmMain_MouseUp);
}
void frmMain_MouseUp(object sender, MouseEventArgs e)
{
this.Capture = false;
Cursor.Clip = Rectangle.Empty;
MouseIsDown = false;
DrawRectangle();
foreach (Control ct in this.Controls)
{
// Point ctrlCenter = new Point(ct.Location.X + ct.Width / 2, ct.Location.Y + ct.Height / 2);
//if (ctrlCenter.X > MouseRect.Location.X
// && ctrlCenter.X < MouseRect.Location.X + MouseRect.Width
// && ctrlCenter.Y > MouseRect.Location.Y && ctrlCenter.Y > MouseRect.Location.Y + MouseRect.Height)
if (MouseRect.Contains(ct.Location))
{
if (ct is CheckBox)
{
if (((CheckBox)ct).Checked) //值选中
{
((CheckBox)ct).Checked = false;
}
else
{
((CheckBox)ct).Checked = true;
}
//控件选中
}
}
}
MouseRect = Rectangle.Empty;
}
void frmMain_MouseMove(object sender, MouseEventArgs e)
{
if (MouseIsDown)
ResizeToRectangle(e.Location);
}
void frmMain_MouseDown(object sender, MouseEventArgs e)
{
MouseIsDown = true;
DrawStart(e.Location);
}
private void ResizeToRectangle(Point p)
{
DrawRectangle();
MouseRect.Width = p.X - MouseRect.Left;
MouseRect.Height = p.Y - MouseRect.Top;
DrawRectangle();
}
private void DrawRectangle()
{
Rectangle rect = this.RectangleToScreen(MouseRect);
ControlPaint.DrawReversibleFrame(rect, Color.White, FrameStyle.Dashed);
}
private void DrawStart(Point StartPoint)
{
this.Capture = true;
Cursor.Clip = this.RectangleToScreen(new Rectangle(0, 0, ClientSize.Width, ClientSize.Height));
MouseRect = new Rectangle(StartPoint.X, StartPoint.Y, 0, 0);
}
}
}
@@ -0,0 +1,120 @@
<?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>
</root>
@@ -0,0 +1,139 @@
using System;
using Lskj.DevFx.Data;
using Lskj.DevFx.Core;
namespace lskj.Model {
/// <summary>
/// 实体类P_systemControlLocation 。(属性说明自动提取数据库字段的描述信息)
/// </summary>
[Serializable]
public class P_systemControlLocation : BaseModel {
public P_systemControlLocation() {
TableName = "P_systemControlLocation";
PrimaryFields.Add("id");
IdentityName = "id";
AddField("id", FieldType.Int32, 4, "", false, true, default(int));
AddField("formKey", FieldType.VarChar, 200, "", false);
AddField("fieldId", FieldType.Int32, 4, "", true);
AddField("fieldName", FieldType.VarChar, 30, "", true);
AddField("userName", FieldType.VarChar, 50, "", true);
AddField("fieldTypeId", FieldType.Int32, 4, "", true);
AddField("defaultValue", FieldType.VarChar, 50, "", true);
AddField("controlLeft", FieldType.Int32, 4, "左", true);
AddField("controlTop", FieldType.Int32, 4, "上", true);
AddField("controlWidth", FieldType.Int32, 4, "宽", true);
AddField("controlHeight", FieldType.Int32, 4, "高", true);
AddField("GroupId", FieldType.Int32, 4, "分组Id", true);
AddField("tabOrder", FieldType.Int32, 4, "TAB次序", true);
}
/// <summary>
///
/// </summary>
//[Description("")]
public int GroupId {
set { SetValue("GroupId", value); }
get { return GetInt32("GroupId"); }
}
/// <summary>
///
/// </summary>
//[Description("")]
public int id {
set { SetValue("id", value); }
get { return GetInt32("id"); }
}
/// <summary>
///
/// </summary>
//[Description("")]
public String formKey {
set { SetValue("formKey", value); }
get { return (String)GetValue("formKey"); }
}
/// <summary>
///
/// </summary>
//[Description("")]
public int fieldId {
set { SetValue("fieldId", value); }
get { return GetInt32("fieldId"); }
}
/// <summary>
///
/// </summary>
//[Description("")]
public string fieldName {
set { SetValue("fieldName", value); }
get { return GetString("fieldName"); }
}
/// <summary>
///
/// </summary>
//[Description("")]
public string userName {
set { SetValue("userName", value); }
get { return GetString("userName"); }
}
/// <summary>
///
/// </summary>
//[Description("")]
public int fieldTypeId {
set { SetValue("fieldTypeId", value); }
get { return GetInt32("fieldTypeId"); }
}
/// <summary>
///
/// </summary>
//[Description("")]
public string defaultValue {
set { SetValue("defaultValue", value); }
get { return GetString("defaultValue"); }
}
/// <summary>
/// 左
/// </summary>
//[Description("左")]
public int controlLeft {
set { SetValue("controlLeft", value); }
get { return GetInt32("controlLeft"); }
}
/// <summary>
/// 上
/// </summary>
//[Description("上")]
public int controlTop {
set { SetValue("controlTop", value); }
get { return GetInt32("controlTop"); }
}
/// <summary>
/// 宽
/// </summary>
//[Description("宽")]
public int controlWidth {
set { SetValue("controlWidth", value); }
get { return GetInt32("controlWidth"); }
}
/// <summary>
/// 高
/// </summary>
//[Description("高")]
public int controlHeight {
set { SetValue("controlHeight", value); }
get { return GetInt32("controlHeight"); }
}
/// <summary>
/// TAB次序
/// </summary>
//[Description("TAB次序")]
public int tabOrder
{
set { SetValue("tabOrder", value); }
get { return GetInt32("tabOrder"); }
}
}
}
@@ -0,0 +1,62 @@
using System;
using Lskj.DevFx.Data;
using Lskj.DevFx.Core;
namespace lskj.Model
{
/// <summary>
/// 实体类P_systemControlParent 。(属性说明自动提取数据库字段的描述信息)
/// </summary>
[Serializable]
public class P_systemControlParent : BaseModel
{
public P_systemControlParent()
{
TableName = "P_systemControlParent";
PrimaryFields.Add("id");
IdentityName = "id";
AddField("id", FieldType.Int32,4, "", false, true,default(int));
AddField("formKey", FieldType.VarChar,200, "", false);
AddField("parentHeight", FieldType.Int32,4, "", true);
AddField("parentWidth", FieldType.Int32,4, "", true);
}
/// <summary>
///
/// </summary>
//[Description("")]
public int id
{
set{ SetValue("id",value);}
get{return GetInt32("id");}
}
/// <summary>
///
/// </summary>
//[Description("")]
public string formKey
{
set{ SetValue("formKey",value);}
get{return (string)GetValue("formKey");}
}
/// <summary>
///
/// </summary>
//[Description("")]
public int parentHeight
{
set{ SetValue("parentHeight",value);}
get{return GetInt32("parentHeight");}
}
/// <summary>
///
/// </summary>
//[Description("")]
public int parentWidth
{
set{ SetValue("parentWidth",value);}
get{return GetInt32("parentWidth");}
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,925 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
using System.Data.Common;
using System.Data.SqlClient;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Views.Grid;
using lskj.Dao;
using lskj.Model;
using Microsoft.Win32;
using CommonLib;
using System.Collections;
namespace MyFormDesinger
{
public partial class MyFormDesigner : Form
{
public string FrmKey { get; set; }
public string SelectSQL { get; set; }
public string updateSQL { get; set; }
public string DllCoid { get; set; }
public DesignerControl dc { get; set; }
private string datastr;
private string ServerName;
private string LoginName;
private string _UpdateSet;
private int _Internet;
private string IsComsumer;
private DataTable dtFiled = new DataTable();
private DataTable dtColumns = new DataTable();
private P_systemControlLocationDao ldao = new P_systemControlLocationDao();
private P_systemControlParentDao pDao = new P_systemControlParentDao();
public MyFormDesigner()
{
InitializeComponent();
DevExpress.XtraGrid.Localization.GridResLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraGridCHS();
DevExpress.XtraEditors.Controls.Localizer.Active = new Dxper.LocalizationCHS.Win.XtraEditorsCHS();
DevExpress.XtraLayout.Localization.LayoutLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraLayoutCHS();
DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraPrintingCHS();
}
public void ReadConfig()
{
RegistryKey regKey = Registry.CurrentUser;
RegistryKey subKey = regKey.OpenSubKey("AA_LS_Erp V2.0");
subKey = subKey.OpenSubKey("File");
datastr = subKey.GetValue("datastr", "")+"";
ServerName = subKey.GetValue("ServerName", "") + "";
LoginName = subKey.GetValue("LoginName", "") + "";
_UpdateSet = subKey.GetValue("UpdateSet", "1") + "";
_Internet = Convert.ToInt32(subKey.GetValue("Internet", 0));
IsComsumer = subKey.GetValue("IsConsumer", "1") + "";
//subKey.Close();
}
public string GetConStr()
{
string connectionStr = string.Format("Server={0};Database={1};Persist Security Info=True;User ID=lserpAdmin;Password=lserp110", ServerName, datastr);
if (IsComsumer == "0")
connectionStr = string.Format("Server={0};Database={1};Persist Security Info=True;User ID=lserp;Password=lserp_ERP_110", ServerName, datastr);
return connectionStr;
}
protected override void OnLoad(EventArgs e)
{
ReadConfig();
string connectionStr = GetConStr();
SqlHelper.conn = new SqlConnection(connectionStr);
SqlHelper.conn.Open();
InitData();
}
private void InitData()
{
dc = dcMain;
dc._hostFrame.Controls.Clear();
dc._overlayer.Controls.Clear();
//绑定数据库字段
string sql = @"select a.formKey,isnull(b.orderid,isnull(a.orderid,0)) as orderid,a.fieldid,a.fieldname,
a.username,a.fieldtypeid,isnull(a.controlLeft,0) as controlLeft,isnull(a.controlTop,0) as controlTop,
isnull(a.controlHeight,21) as controlHeight,isnull(a.controlWidth,120) as controlWidth,isnull(b.Columns_Id,a.Column_Id) as Column_Id,
isnull(a.tabOrder,b.tabOrder) as tabOrder,a.defaultValue,
cast(case when isnull(b.id,0)=0 then 0 else 1 end as bit) as isAdd
from v_systemcontrolTab a
left join p_systemControlLocation b on a.formKey=b.formKey
and lower(a.fieldname)=lower(b.fieldName)
where a.formKey='" + FrmKey + "'" +
" order by a.orderid";
//MessageBox.Show(sql);
dtFiled = SqlHelper.ExecuteDataSet(sql).Tables[0];
DataRow dr = dtFiled.NewRow();
dr["fieldname"] = "分组框";
dr["fieldtypeid"] = "8888";
dr["orderid"] = 0;
dr["column_id"] = 0;
dtFiled.Rows.InsertAt(dr, 0);
DataRow drPage = dtFiled.NewRow();
drPage["fieldname"] = "分页组件";
drPage["fieldtypeid"] = "8889";
drPage["orderid"] = 0;
drPage["column_id"] = 0;
dtFiled.Rows.InsertAt(drPage, 0);
gcFiled.DataSource = dtFiled;
sql = "select FormKey,Column_Id,controlLeft,controlTop,controlWidth,controlHeight,RowSpace from p_systemcontrolColumn where formkey='" + FrmKey + "'";
dtColumns = SqlHelper.ExecuteDataSet(sql).Tables[0];
if (dtColumns.Rows.Count < 1)
{
DataRow dr1 = dtColumns.NewRow();
dr1["formkey"] = FrmKey;
dr1["column_id"] = 1;
dr1["controlleft"] = 5;
dr1["controlTop"] = 5;
dr1["controlWidth"] = 120;
dr1["controlHeight"] = 21;
dr1["rowspace"] = 5;
dtColumns.Rows.InsertAt(dr1, 0);
}
gridControl1.DataSource = dtColumns;
LoadDefault();
}
/// <summary>
/// 绑定已经设置过参数
/// </summary>
private void LoadDefault()
{
DataTable dtLoction = SqlHelper.ExecuteDataSet(string.Format("select * from p_systemControlLocation where formkey='{0}'", FrmKey)).Tables[0];
P_systemControlParent pModel = pDao.GetItem("formKey='" + FrmKey + "'");
dc = dcMain;
if (pModel != null)
{
plRight.Controls.Clear();
dc = new DesignerControl(pModel.parentWidth, pModel.parentHeight);
dc.Height = pModel.parentHeight;
dc.Width = pModel.parentWidth;
dc.AutoScroll = true;
plRight.Controls.Add(dc);
dc.Dock = DockStyle.Fill;
plRight.AutoScroll = true;
dc.BringToFront();
}
foreach (DataRow row in dtLoction.Rows)
{
string fieldid = row["fieldid"].ToString();
string username = row["username"].ToString();
string fieldtypeid = row["fieldtypeid"].ToString();
string fieldname = row["fieldname"].ToString();
string defaultValue = row["defaultValue"].ToString();
string column_id = row["columns_id"].ToString();
int orderid = Convert.ToInt32( row["orderid"]);
Control ctr = ControlHelper.CreateControl(username, fieldname, Convert.ToInt32(fieldtypeid));
int posX = Convert.ToInt32(row["controlLeft"]);
int posY = Convert.ToInt32(row["controlTop"]);
int width = Convert.ToInt32(row["controlWidth"]);
int height = Convert.ToInt32(row["controlHeight"]);
int tabOrder = Convert.ToInt32(row["tabOrder"]);
if (ctr == null)
continue;
ctr.Location = (new Point(posX, posY));//屏幕坐标转换成控件容器坐标
ctr.Width = width;
ctr.Height = height;
ctr.TabIndex = tabOrder;
ctr.Tag = new object[] { fieldid, username, fieldtypeid, fieldname, defaultValue, column_id, orderid };
ctr.Parent = dc._hostFrame;
ctr.BringToFront();
}
string addgroup_sql = String.Format("select * from p_systemaddgroup where formkey='{0}'", FrmKey);
DataTable dtGroup = SqlHelper.ExecuteDataSet(addgroup_sql).Tables[0];
foreach (DataRow row in dtGroup.Rows)
{
if (Convert.ToInt32(row["controlType"]) == 333)
{
GroupBox gb = new GroupBox();
gb.Text = row["groupName"] + "";
gb.Width = Convert.ToInt32(row["controlWidth"]);
gb.Left = Convert.ToInt32(row["controlLeft"]);
gb.Top = Convert.ToInt32(row["controlTop"]);
gb.Height = Convert.ToInt32(row["controlHeight"]);
gb.Tag = new string[] { "", row["groupName"] + "", "8888", "", "", "", "" };
gb.SendToBack();
dc._hostFrame.Controls.Add(gb);
}
if (Convert.ToInt32(row["controlType"]) == 332)
{
Panel pnlPage = new Panel();
pnlPage.Text = row["groupName"] + "";
pnlPage.Width = Convert.ToInt32(row["controlWidth"]);
pnlPage.Left = Convert.ToInt32(row["controlLeft"]);
pnlPage.Top = Convert.ToInt32(row["controlTop"]);
pnlPage.Height = Convert.ToInt32(row["controlHeight"]);
pnlPage.Tag = new string[] { "", row["groupName"] + "", "8889", "", "", "", "" };
pnlPage.BackColor = Color.LightGreen;
pnlPage.SendToBack();
dc._hostFrame.Controls.Add(pnlPage);
}
}
}
private void gvFiled_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button != MouseButtons.Left)
return;
DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi = gvFiled.CalcHitInfo(new Point(e.X, e.Y));
DataRow row = gvFiled.GetDataRow(hi.RowHandle);
if (row != null)
{
string fieldid = row["fieldid"].ToString();
string username = row["username"].ToString();
string fieldtypeid = row["fieldtypeid"].ToString();
string fieldname = row["fieldname"].ToString();
string defaultValue = row["defaultValue"].ToString();
int column_Id = Convert.ToInt32(row["column_id"]);
int orderId = Convert.ToInt32(row["orderid"]);
Control[] ctr = dc.Controls.Find(fieldname, true);
if (ctr.Length > 0 && !(ctr[0] is GroupBox))
{
//XtraMessageBox.Show("抱歉,控件已存在!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
//(ctr[0] as Control).Focus();
return;
}
object[] strs = { fieldid, username, fieldtypeid, fieldname, defaultValue, column_Id, orderId};
DoDragDrop(strs, DragDropEffects.Copy);
}
}
/// <summary>
/// 删除全部控件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void barDeleteAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
{
DialogResult dr = MessageBox.Show("确定全部删除?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dr == System.Windows.Forms.DialogResult.Yes)
{
dc._hostFrame.Controls.Clear();
dc._overlayer.Controls.Clear();
}
}
/// <summary>
/// 运行测试窗体
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void barRun_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
{
RunForm runForm = new RunForm();
runForm.FrmKey = FrmKey;
//runForm.db = db;
runForm.SQL = SelectSQL;
runForm.ShowDialog();
}
/// <summary>
/// 保存表单
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void barSave_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
{
StringBuilder sqlbuild = new StringBuilder() ;
string sql = "";
try
{
sqlbuild.Append(string.Format("delete p_systemControlLocation where formkey='{0}';delete p_systemControlParent where formkey='{0}';delete p_systemAddGroup where formkey='{0}';delete from p_systemcontrolColumn where formkey='{0}'", FrmKey));
//SqlHelper.ExecuteNonQuery(string.Format("delete p_systemControlLocation where formkey='{0}';delete p_systemControlParent where formkey='{0}';delete p_systemAddGroup where formkey='{0}'", FrmKey));
P_systemControlParent pModel = new P_systemControlParent();
pModel.formKey = FrmKey;
pModel.parentHeight = dc._hostFrame.Height;
pModel.parentWidth = dc._hostFrame.Width;
//pDao.Add(pModel);
sql = "insert into p_systemControlParent (formkey,parentheight,parentwidth) values ('" + FrmKey + "'," + dc._hostFrame.Height.ToString() + "," + dc._hostFrame.Width.ToString() + ")";
sqlbuild.Append(sql);
DataTable dtColumn = gridControl1.DataSource as DataTable;
dtColumn.AcceptChanges();
if ((dtColumn!=null)&&(dtColumn.Rows.Count>0))
{
foreach (DataRow row in dtColumn.Rows)
{
sql = String.Format( @"insert into p_systemcontrolColumn (FormKey,Column_Id,controlLeft,controlTop,controlWidth,controlHeight,RowSpace)
values ('{0}'
,'{1}'
,'{2}'
,'{3}'
,'{4}'
,'{5}'
,'{6}')",FrmKey,row["column_id"],row["controlLeft"],row["controlTop"],row["controlWidth"],row["controlHeight"],row["rowspace"]);
sqlbuild.Append(sql);
}
}
if (dtFiled != null && dtFiled.Rows.Count > 0)
{
foreach (Control c in dc._hostFrame.Controls)
{
if (c is GroupBox)
{
sql = String.Format(@"INSERT INTO [p_systemAddGroup]
([GroupName]
,[controlLeft]
,[controlTop]
,[controlHeight]
,[controlWidth]
,[formKey]
,[controlType])
VALUES
('{0}'
,'{1}'
,'{2}'
,'{3}'
,'{4}'
,'{5}'
,'{6}')", c.Text, c.Left, c.Top, c.Height, c.Width, FrmKey, 333);
sqlbuild.Append(sql);
//SqlHelper.ExecuteNonQuery(sql);
}
if (c is Panel)
{
sql = String.Format(@"INSERT INTO [p_systemAddGroup]
([GroupName]
,[controlLeft]
,[controlTop]
,[controlHeight]
,[controlWidth]
,[formKey]
,[controlType])
VALUES
('{0}'
,'{1}'
,'{2}'
,'{3}'
,'{4}'
,'{5}'
,'{6}')", c.Text, c.Left, c.Top, c.Height, c.Width, FrmKey, 332);
sqlbuild.Append(sql);
//SqlHelper.ExecuteNonQuery(sql);
}
}
}
foreach (DataRow row in dtFiled.Rows)
{
//MessageBox.Show(row["fieldName"].ToString());
if (row["fieldName"].ToString().Trim() != "")
{
Control[] ctrs = dc.Controls.Find(row["fieldName"].ToString(), true);
if (ctrs.Length == 0)
continue;
Control ctr = ctrs[0];
bool isGroup = ctr is GroupBox;
if (!isGroup)
{
object[] tags = (object[])ctr.Tag;
P_systemControlLocation model = new P_systemControlLocation();
if (tags.Length == 8)
{
ControlProperty controlProperty = tags[7] as ControlProperty;
String group_sql = string.Format("select * from p_systemAddGroup where formkey='{0}' and groupName='{1}'", FrmKey, controlProperty.GroupName);
DataTable dtsql = SqlHelper.ExecuteDataSet(group_sql).Tables[0];
if (dtsql != null && dtsql.Rows.Count > 0)
{
model.GroupId = Convert.ToInt32(dtsql.Rows[0]["id"]);
}
else
{
model.GroupId = 0;
}
}
else
{
model.GroupId = 0;
}
model.formKey = FrmKey;
model.fieldId = Convert.ToInt32(tags[0]);
model.userName = tags[1].ToString();
model.fieldTypeId = Convert.ToInt32(tags[2]);
model.fieldName = tags[3].ToString();
model.defaultValue = tags[4].ToString();
model.controlHeight = ctr.Height;
model.controlLeft = ctr.Left;
model.controlTop = ctr.Top;
model.controlWidth = ctr.Width;
model.tabOrder = ctr.TabIndex;
sql = @"insert into p_systemcontrollocation (formKey
,fieldId
,fieldName
,userName
,fieldTypeId
,defaultValue
,controlLeft
,controlTop
,controlWidth
,controlHeight
,GroupId
,tabOrder
,Columns_Id
,orderid) values ('" + FrmKey + "'," +
tags[0].ToString() + ",'" +
tags[3].ToString() + "','" +
tags[1].ToString() + "'," +
tags[2].ToString() + ",'" +
tags[4].ToString().Replace("'", "''") + "'," +
ctr.Left.ToString() + "," +
ctr.Top.ToString() + "," +
ctr.Width.ToString() + "," +
ctr.Height.ToString() + "," +
model.GroupId.ToString() + "," +
ctr.TabIndex.ToString() + "," +
tags[5].ToString() + "," +
tags[6].ToString() + ")";
sqlbuild.Append(sql);
//ldao.Add(model);
}
}
else
{
MessageBox.Show(row["username"].ToString());
}
sqlbuild.Append(updateSQL);
//MessageBox.Show( sqlbuild.ToString());
SqlHelper.ExecuteNonQuery(sqlbuild.ToString());
//MessageBox.Show("OK");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
//SqlHelper.ExecuteNonQuery(updateSQL);
XtraMessageBox.Show("保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
public void SetMeTop(object obj)
{
//原理:先添加的控件会在最上面,即可见次序是由index决定的.
int index = this.Controls.GetChildIndex((Control)obj);//取得要置顶控件的index
ArrayList AL = new ArrayList();//用来装入控件的容器
for (int i = 0; i < index; i++)//把要置顶控件上面的控件都装入容器
{
AL.Add(this.Controls[i]);
}
for (int i = 0; i < AL.Count; i++)
{
//用一次删除和一次添加操作,让它上面的控件排到下面去.
this.Controls.Remove((Control)AL[i]);
this.Controls.Add((Control)AL[i]);
}
}
private void barDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
{
dc._hostFrame.Controls.Remove(dc._overlayer._currentCtrl);
dc._overlayer.Controls.Clear();
}
private void barClose_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
{
this.Close();
}
private void gvFiled_RowCellStyle(object sender, RowCellStyleEventArgs e)
{
DataRow dr = gvFiled.GetDataRow(e.RowHandle);
if (dr==null)
return;
if (dr["formKey"] + "" == "")
return;
if (dr["isAdd"].ToString() == "0")
e.Appearance.ForeColor = Color.Red;
if ((Convert.ToInt32(dr["controlLeft"]) < 0)||(Convert.ToInt32(dr["controlTop"]) < 0)||
(Convert.ToInt32(dr["controlLeft"]) > dc._hostFrame.Width)||
(Convert.ToInt32(dr["controlTop"]) > dc._hostFrame.Height)||
(Convert.ToInt32(dr["controlLeft"])+Convert.ToInt32(dr["controlWidth"])>dc._hostFrame.Width)||
(Convert.ToInt32(dr["controlTop"]) + Convert.ToInt32(dr["controlHeight"]) > dc._hostFrame.Height))
{
e.Appearance.ForeColor = Color.Blue;
}
}
private void gvFiled_RowCellClick(object sender, RowCellClickEventArgs e)
{
DataRow dr = gvFiled.GetDataRow( e.RowHandle);
if (dr==null)
return;
string ctlName = dr["fieldName"].ToString();
Control[] ctr = this.Controls.Find(ctlName, true);
if ((ctr == null)||(ctr.Length<1))
return;
dc._overlayer._currentCtrl = ctr[0];
//MessageBox.Show(ctr[0].Bounds.X.ToString() + "Y:" + ctr[0].Bounds.Y.ToString());
MouseEventArgs ex = new MouseEventArgs(MouseButtons.Left, 0, ctr[0].Bounds.X+20, ctr[0].Bounds.Y+50, 0);
dc._overlayer.UserMouseDown(ex);
dc._overlayer.UserMouseUp(ex);
}
private void toolStripMenuItem1_Click(object sender, EventArgs e)
{
DialogResult drt = MessageBox.Show("是否重新生成顺序号?", "询问", MessageBoxButtons.YesNo);
if (drt != DialogResult.Yes)
return;
DataTable dt = gcFiled.DataSource as DataTable;
string ctlName = "";
Control[] ctr = null;
int curRow = 1;
foreach (DataRow dr in dt.Rows)
{
if (dr["formkey"].ToString() != "")
{
dr["orderid"]= curRow;
ctlName = dr["fieldname"].ToString();
ctr = this.Controls.Find(ctlName, true);
if ((ctr == null) || (ctr.Length < 1))
{
curRow = curRow + 1;
continue;
}
object[] objs = (object[])ctr[0].Tag;
objs[6] = curRow;
ctr[0].Tag = objs;
curRow = curRow + 1;
}
}
}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsDigit(e.KeyChar))
e.Handled = false;
}
private void simpleButton4_Click(object sender, EventArgs e)
{
int[] selRow = gvFiled.GetSelectedRows();
if ((selRow == null) || (selRow.Length < 1))
{
MessageBox.Show("未选中需要调整的字段");
return;
}
if (comboBox1.Text == "")
{
MessageBox.Show("请选择调整类型");
return;
}
if (comboBox2.Text == "")
{
MessageBox.Show("请选择调整属性");
return;
}
if (numericUpDown1.Value==0)
{
MessageBox.Show("请输入调整值");
return;
}
DialogResult dlrg = MessageBox.Show("是否对选中的字段进行批量调整?","询问",MessageBoxButtons.YesNo);
if (dlrg != DialogResult.Yes)
return;
string tzField = "";
switch (comboBox2.SelectedIndex ){
case 0: tzField="controlLeft";break;
case 1: tzField="controlTop";break;
case 2: tzField="controlWidth";break;
case 3: tzField="controlHeight";break;
case 4: tzField = "column_id"; break;
}
foreach (int i in selRow)
{
DataRow dr = gvFiled.GetDataRow(i);
if (dr == null)
return;
if (dr["formkey"].ToString() != "")
{
int value = Convert.ToInt32(numericUpDown1.Value);
if (comboBox1.SelectedIndex == 1)
{
value = Convert.ToInt32(dr[tzField]) + value;
}
dr[tzField] = value;
string ctlName = dr["fieldname"].ToString();
Control[] ctr = this.Controls.Find(ctlName, true);
if ((ctr == null) || (ctr.Length < 1))
{
continue;
}
switch (comboBox2.SelectedIndex ){
case 0: ctr[0].Left = value ;break;
case 1: ctr[0].Top = value; break;
case 2: ctr[0].Width = value; break;
case 3: ctr[0].Height = value; break;
case 4:
{
object[] objs = (object[]) ctr[0].Tag;
objs[5] = Convert.ToInt32(numericUpDown1.Value);
ctr[0].Tag = objs;
break;
}
}
}
}
}
private void barButtonItem9_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
{
DialogResult dr = MessageBox.Show("确定将数据恢复到上次保存状态?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dr == System.Windows.Forms.DialogResult.Yes)
{
InitData();
}
}
private void toolStripMenuItem2_Click(object sender, EventArgs e)
{
}
private void ToolStripMenuItem4_Click(object sender, EventArgs e)
{
DataTable dt = gcFiled.DataSource as DataTable;
DataRow dr = gvFiled.GetDataRow( gvFiled.FocusedRowHandle);
if (dr==null)
return;
if (dr["formkey"].ToString() == "")
return;
int icol = Convert.ToInt32( dr["column_id"]);
gvFiled.ClearSelection();
for(int i=0;i<dt.Rows.Count;i++)
{
DataRow row = gvFiled.GetDataRow(i);
if (row["formkey"].ToString() == "")
continue;
if (row["column_id"].ToString() == icol.ToString())
gvFiled.SelectRow(i);
}
}
private void ToolStripMenuItemJql_Click(object sender, EventArgs e)
{
DataTable dt = gcFiled.DataSource as DataTable;
DataRow dr = gvFiled.GetDataRow(gvFiled.FocusedRowHandle);
if (dr == null)
return;
if (dr["formkey"].ToString() == "")
return;
int icol = Convert.ToInt32(dr["controlleft"]);
gvFiled.ClearSelection();
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow row = gvFiled.GetDataRow(i);
if (row["formkey"].ToString() == "")
continue;
if (row["controlleft"].ToString() == icol.ToString())
gvFiled.SelectRow(i);
}
}
private void ToolStripMenuItemCyl_Click(object sender, EventArgs e)
{
DataTable dt = gcFiled.DataSource as DataTable;
DataRow dr = gvFiled.GetDataRow(gvFiled.FocusedRowHandle);
if (dr == null)
return;
if (dr["formkey"].ToString() == "")
return;
int icol = Convert.ToInt32(dr["controlleft"]);
gvFiled.ClearSelection();
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow row = gvFiled.GetDataRow(i);
if (row["formkey"].ToString() == "")
continue;
if ((Convert.ToInt32(row["controlleft"]) >= icol - 10) && (Convert.ToInt32(row["controlleft"]) <= icol + 10))
gvFiled.SelectRow(i);
}
}
private void ToolStripMenuItemJqh_Click(object sender, EventArgs e)
{
DataTable dt = gcFiled.DataSource as DataTable;
DataRow dr = gvFiled.GetDataRow(gvFiled.FocusedRowHandle);
if (dr == null)
return;
if (dr["formkey"].ToString() == "")
return;
int icol = Convert.ToInt32(dr["controlTop"]);
gvFiled.ClearSelection();
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow row = gvFiled.GetDataRow(i);
if (row["formkey"].ToString() == "")
continue;
if (row["controlTop"].ToString() == icol.ToString())
gvFiled.SelectRow(i);
}
}
private void ToolStripMenuItemCyh_Click(object sender, EventArgs e)
{
DataTable dt = gcFiled.DataSource as DataTable;
DataRow dr = gvFiled.GetDataRow(gvFiled.FocusedRowHandle);
if (dr == null)
return;
if (dr["formkey"].ToString() == "")
return;
int icol = Convert.ToInt32(dr["controlTop"]);
gvFiled.ClearSelection();
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow row = gvFiled.GetDataRow(i);
if (row["formkey"].ToString() == "")
continue;
if ((Convert.ToInt32(row["controlTop"]) >= icol - 10) && (Convert.ToInt32(row["controlTop"]) <= icol + 10))
gvFiled.SelectRow(i);
}
}
private void simpleButton1_Click(object sender, EventArgs e)
{
DataTable dt = gridControl1.DataSource as DataTable;
if (dt == null)
return;
DataRow dr1 = dtColumns.NewRow();
dr1["formkey"] = FrmKey;
dr1["column_id"] = gridView1.RowCount+1;
dr1["controlleft"] = 5;
dr1["controlTop"] = 5;
dr1["controlWidth"] = 120;
dr1["controlHeight"] = 21;
dr1["rowspace"] = 5;
dt.Rows.Add(dr1);
}
private void simpleButton2_Click(object sender, EventArgs e)
{
object obj = gridView1.GetFocusedRow();
if (obj == null)
return;
DataTable dt = gridControl1.DataSource as DataTable;
if (dt == null)
return;
gridView1.DeleteRow(gridView1.FocusedRowHandle);
}
private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
{
}
private void simpleButton3_Click(object sender, EventArgs e)
{
DialogResult drt = MessageBox.Show("执行方案将覆盖现有布局,是否继续?","询问",MessageBoxButtons.OKCancel);
if (drt != DialogResult.OK)
return;
DataTable dt = gcFiled.DataSource as DataTable;
if (dt == null)
return;
DataTable dtCol = gridControl1.DataSource as DataTable;
if (dtCol == null)
return;
if (dtCol.Rows.Count < 1)
{
MessageBox.Show("未添加栏目不能执行方案");
return;
}
foreach (DataRow drCol in dtCol.Rows)
{
int iCol = Convert.ToInt32(drCol["column_id"]);
int iLeft = Convert.ToInt32(drCol["controlLeft"]);
int iTop = Convert.ToInt32(drCol["controlTop"]);
int iWidth = Convert.ToInt32(drCol["controlWidth"]);
int iHeight = Convert.ToInt32(drCol["controlHeight"]);
int iSpace = Convert.ToInt32(drCol["rowspace"]);
foreach (DataRow dr in dt.Rows)
{
if (Convert.ToInt32(dr["column_id"]) == iCol)
{
dr["controlLeft"] = iLeft;
dr["controlTop"]=iTop;
dr["controlWidth"]=iWidth;
dr["controlHeight"]=iHeight;
iTop = iTop + iHeight + iSpace;
}
}
}
dc._hostFrame.Controls.Clear();
dc._overlayer.Controls.Clear();
foreach (DataRow row in dt.Rows)
{
if (row["formkey"].ToString() == "")
continue;
string fieldid = row["fieldid"].ToString();
string username = row["username"].ToString();
string fieldtypeid = row["fieldtypeid"].ToString();
string fieldname = row["fieldname"].ToString();
string defaultValue = row["defaultValue"].ToString();
string column_id = row["column_id"].ToString();
int orderid = Convert.ToInt32(row["orderid"]);
Control ctr = ControlHelper.CreateControl(username, fieldname, Convert.ToInt32(fieldtypeid));
int posX = Convert.ToInt32(row["controlLeft"]);
int posY = Convert.ToInt32(row["controlTop"]);
int width = Convert.ToInt32(row["controlWidth"]);
int height = Convert.ToInt32(row["controlHeight"]);
int tabOrder = Convert.ToInt32(row["tabOrder"]);
if (ctr == null)
continue;
ctr.Location = (new Point(posX, posY));//屏幕坐标转换成控件容器坐标
ctr.Width = width;
ctr.Height = height;
ctr.TabIndex = tabOrder;
ctr.Tag = new object[] { fieldid, username, fieldtypeid, fieldname, defaultValue, column_id, orderid };
ctr.Parent = dc._hostFrame;
ctr.BringToFront();
}
}
private void toolStripMenuItem3_Click(object sender, EventArgs e)
{
DialogResult dlg = MessageBox.Show("是否按顺序号生成tab键次序?", "询问", MessageBoxButtons.YesNo);
if (dlg != DialogResult.Yes)
return;
gvFiled.SelectAll();
int[] selRow = gvFiled.GetSelectedRows();
foreach (int i in selRow)
{
DataRow dr = gvFiled.GetDataRow(i);
if (dr == null)
return;
if (dr["formkey"].ToString() != "")
{
int value = Convert.ToInt32(dr["orderid"]);
string ctlName = dr["fieldname"].ToString();
Control[] ctr = this.Controls.Find(ctlName, true);
if ((ctr == null) || (ctr.Length < 1))
{
continue;
}
ctr[0].TabIndex = value;
object[] objs = (object[])ctr[0].Tag;
objs[6] = value;
ctr[0].Tag = objs;
}
}
gvFiled.ClearSelection();
}
private void MyFormDesigner_Resize(object sender, EventArgs e)
{
plRight.Height = this.Height;
plRight.Width = this.Width;
}
private void propertyGrid1_Click(object sender, EventArgs e)
{
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,466 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{03DF5694-BC60-4030-B66E-0304F0A63059}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MyFormDesinger</RootNamespace>
<AssemblyName>MyFormDesinger</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\..\bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>a.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.v13.1">
<HintPath>lib\DevExpress.Data.v13.1.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Printing.v13.1.Core">
<HintPath>lib\DevExpress.Printing.v13.1.Core.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Utils.v13.1">
<HintPath>lib\DevExpress.Utils.v13.1.dll</HintPath>
</Reference>
<Reference Include="DevExpress.XtraBars.v13.1">
<HintPath>lib\DevExpress.XtraBars.v13.1.dll</HintPath>
</Reference>
<Reference Include="DevExpress.XtraEditors.v13.1">
<HintPath>lib\DevExpress.XtraEditors.v13.1.dll</HintPath>
</Reference>
<Reference Include="DevExpress.XtraGrid.v13.1">
<HintPath>lib\DevExpress.XtraGrid.v13.1.dll</HintPath>
</Reference>
<Reference Include="DevExpress.XtraLayout.v13.1">
<HintPath>lib\DevExpress.XtraLayout.v13.1.dll</HintPath>
</Reference>
<Reference Include="DevExpress.XtraPrinting.v13.1">
<HintPath>lib\DevExpress.XtraPrinting.v13.1.dll</HintPath>
</Reference>
<Reference Include="Dxper.LocalizationCHS.Win.v13.1.5">
<HintPath>..\..\..\引用DLL\Dxper.LocalizationCHS.Win.v13.1.5.dll</HintPath>
</Reference>
<Reference Include="Lskj.DBUtility">
<HintPath>..\..\..\引用DLL\Lskj.DBUtility.dll</HintPath>
</Reference>
<Reference Include="Lskj.DevFx">
<HintPath>..\..\..\引用DLL\Lskj.DevFx.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Codes\ControlHelper.cs" />
<Compile Include="Codes\ControlProperty.cs" />
<Compile Include="Codes\ControlParentProperty.cs" />
<Compile Include="Dao\P_systemControlLocationDao.cs" />
<Compile Include="Dao\P_systemControlParent.cs" />
<Compile Include="Dao\P_systemControlParentDao.cs" />
<Compile Include="DesignerControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="DesignerControl.Designer.cs">
<DependentUpon>DesignerControl.cs</DependentUpon>
</Compile>
<Compile Include="HostFrame.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="HostFrame.Designer.cs">
<DependentUpon>HostFrame.cs</DependentUpon>
</Compile>
<Compile Include="Codes\MessageFilter.cs" />
<Compile Include="Model\P_systemControlLocation.cs" />
<Compile Include="Model\P_systemControlParent.cs" />
<Compile Include="MyFormDesigner.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="MyFormDesigner.Designer.cs">
<DependentUpon>MyFormDesigner.cs</DependentUpon>
</Compile>
<Compile Include="Overlayer.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Overlayer.Designer.cs">
<DependentUpon>Overlayer.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RunForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="RunForm.Designer.cs">
<DependentUpon>RunForm.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="DesignerControl.resx">
<DependentUpon>DesignerControl.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="HostFrame.resx">
<DependentUpon>HostFrame.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="MyFormDesigner.resx">
<DependentUpon>MyFormDesigner.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Overlayer.resx">
<DependentUpon>Overlayer.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="RunForm.resx">
<DependentUpon>RunForm.cs</DependentUpon>
</EmbeddedResource>
<Fakes Include="Fakes\ControlLib.fakes" />
<Fakes Include="Fakes\CommonLib.fakes" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="Codes\Recter.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="Resources\AddFile_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AddFile_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AddFolder_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AddFolder_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AddToAlbum_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AddToAlbum_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AddToLibrary_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AddToLibrary_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Album_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Album_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Back_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Back_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Cancel_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Cancel_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Close_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Close_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Collage_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Collage_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Edit_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Edit_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\EMail_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\EMail_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Export_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Export_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Film_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Film_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Filter_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Filter_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\FilterSample.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Folder_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Folder_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Forward_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Forward_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\GenerateData_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\GenerateData_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Help_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Help_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\ItemMarked_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\ItemMarked_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Library_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Library_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Mark_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Mark_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\NewAlbum_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\NewAlbum_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Other_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Other_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Print_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Print_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Remove_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Remove_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\RemoveAlbum_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\RemoveAlbum_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\RemoveFolder_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\RemoveFolder_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\RemoveFromAlbum_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\RemoveFromAlbum_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Save_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Save_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\SelectAllMarked_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\SelectAllMarked_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Slideshow_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Slideshow_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Tile.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Undo_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Undo_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Unmark_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Unmark_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\UnmarkAll_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\UnmarkAll_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Upload_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Upload_32x32.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\View_16x16.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\View_32x32.png" />
</ItemGroup>
<ItemGroup>
<Content Include="a.ico" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\CommonLib\CommonLib.csproj">
<Project>{3E8E6529-5D8A-4F17-8C41-27CD7380178D}</Project>
<Name>CommonLib</Name>
</ProjectReference>
<ProjectReference Include="..\..\ControlLib\ControlLib.csproj">
<Project>{73C024E7-D9DC-44C3-BABC-2AA1544ECCF9}</Project>
<Name>ControlLib</Name>
</ProjectReference>
<ProjectReference Include="..\..\Lskj.Common\Lskj.Common.csproj">
<Project>{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}</Project>
<Name>Lskj.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\Lskj.MyControl\Lskj.MyControl.csproj">
<Project>{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}</Project>
<Name>Lskj.MyControl</Name>
</ProjectReference>
<ProjectReference Include="..\..\Lskj.PubUtils\Lskj.PubUtils.csproj">
<Project>{752386CB-FD63-4565-980F-E8F72A520F77}</Project>
<Name>Lskj.PubUtils</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -0,0 +1,48 @@
namespace MyFormDesinger
{
partial class Overlayer
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// Overlayer
//
this.AllowDrop = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "Overlayer";
this.Size = new System.Drawing.Size(200, 188);
//this.Load += new System.EventHandler(this.Overlayer_Load);
this.ResumeLayout(false);
}
#endregion
}
}
@@ -0,0 +1,645 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MyFormDesinger
{
public partial class Overlayer : UserControl
{
HostFrame _themainhost; //被遮罩的控件容器,通过Overlayer操作该容器(以及其中的子控件)
Recter _recter = new Recter(); //被操作控件(容器)周围的方框
Point _firstPoint = new Point();
bool _mouseDown = false;
DragType _dragType = DragType.None;
public Control _currentCtrl = null; //当前被操作控件
public Overlayer(HostFrame themainhost)
{
_themainhost = themainhost; //默认被操作的是控件容器
Rectangle r = _themainhost.Bounds;
r = _themainhost.Parent.RectangleToScreen(r);
r = this.RectangleToClient(r);
_recter.Rect = r;
_recter.IsForm = true;
InitializeComponent();
}
protected override CreateParams CreateParams
{
get
{
CreateParams para = base.CreateParams;
para.ExStyle |= 0x00000020; //WS_EX_TRANSPARENT 透明支持
return para;
}
}
protected override void OnPaintBackground(PaintEventArgs e) //不画背景
{
//base.OnPaintBackground(e);
}
protected override void OnPaint(PaintEventArgs e)
{
if (_recter != null) //绘制被操作控件周围的方框
{
_recter.Draw(e.Graphics);
}
base.OnPaint(e);
}
public void UserMouseDown(MouseEventArgs e)
{
OnMouseDown(e);
}
public void UserMouseUp(MouseEventArgs e)
{
OnMouseUp(e);
}
Point mouseDownPoint = Point.Empty;//记录鼠标按下坐标
#region
protected override void OnMouseMove(MouseEventArgs e)
{
//if (MouseIsDown)
//{
// ResizeToRectangle(e.Location);
//}
//画线
//if (!MouseIsDown && isDrag)
//{
// var ly = e.Location.Y - mouseDownPoint.Y;
// var lx = e.Location.X - mouseDownPoint.X;
// foreach (var item in Contrlist)
// {
// //rect.Location = getPointToForm(new Point(e.Location.X - mouseDownPoint.X, e.Location.Y - mouseDownPoint.Y));
// item.control.Location = new Point(item.control.Location.X+lx, item.control.Location.Y + ly);
// item.rects = new Rectangle(item.rects.X+lx, item.rects.Y + ly, item.rects.Width, item.rects.Height);
// _recter.Rect = item.rects;
// _firstPoint = item.control.Location;
// }
//}
//_themainhost.Text = "X:" + e.Location.X.ToString() + "Y:" + e.Location.Y.ToString();
if (!_mouseDown) //鼠标形状
{
DragType dt = _recter.GetMouseDragType(e.Location);
switch (dt)
{
case DragType.Top:
{
Cursor = Cursors.SizeNS;
break;
}
case DragType.RightTop:
{
Cursor = Cursors.SizeNESW;
break;
}
case DragType.RightBottom:
{
Cursor = Cursors.SizeNWSE;
break;
}
case DragType.Right:
{
Cursor = Cursors.SizeWE;
break;
}
case DragType.LeftTop:
{
Cursor = Cursors.SizeNWSE;
break;
}
case DragType.LeftBottom:
{
Cursor = Cursors.SizeNESW;
break;
}
case DragType.Left:
{
Cursor = Cursors.SizeWE;
break;
}
case DragType.Center:
{
Cursor = Cursors.SizeAll;
break;
}
case DragType.Bottom:
{
Cursor = Cursors.SizeNS;
break;
}
default:
{
Cursor = Cursors.Default;
break;
}
}
}
else
{
switch (_dragType) //改变方框位置大小
{
case DragType.Top:
{
Point delta = new Point(e.Location.X - _firstPoint.X, e.Location.Y - _firstPoint.Y);
_recter.Rect = new Rectangle(_recter.Rect.X, _recter.Rect.Y + delta.Y, _recter.Rect.Width, _recter.Rect.Height + delta.Y * (-1));
_firstPoint = e.Location;
break;
}
case DragType.RightTop:
{
Point delta = new Point(e.Location.X - _firstPoint.X, e.Location.Y - _firstPoint.Y);
_recter.Rect = new Rectangle(_recter.Rect.X, _recter.Rect.Y + delta.Y, _recter.Rect.Width + delta.X, _recter.Rect.Height + delta.Y * (-1));
_firstPoint = e.Location;
break;
}
case DragType.RightBottom:
{
Point delta = new Point(e.Location.X - _firstPoint.X, e.Location.Y - _firstPoint.Y);
_recter.Rect = new Rectangle(_recter.Rect.X, _recter.Rect.Y, _recter.Rect.Width + delta.X, _recter.Rect.Height + delta.Y);
_firstPoint = e.Location;
break;
}
case DragType.Right:
{
Point delta = new Point(e.Location.X - _firstPoint.X, e.Location.Y - _firstPoint.Y);
_recter.Rect = new Rectangle(_recter.Rect.X, _recter.Rect.Y, _recter.Rect.Width + delta.X, _recter.Rect.Height);
_firstPoint = e.Location;
break;
}
case DragType.LeftTop:
{
Point delta = new Point(e.Location.X - _firstPoint.X, e.Location.Y - _firstPoint.Y);
_recter.Rect = new Rectangle(_recter.Rect.X + delta.X, _recter.Rect.Y + delta.Y, _recter.Rect.Width + delta.X * (-1), _recter.Rect.Height + delta.Y * (-1));
_firstPoint = e.Location;
break;
}
case DragType.LeftBottom:
{
Point delta = new Point(e.Location.X - _firstPoint.X, e.Location.Y - _firstPoint.Y);
_recter.Rect = new Rectangle(_recter.Rect.X + delta.X, _recter.Rect.Y, _recter.Rect.Width + delta.X * (-1), _recter.Rect.Height + delta.Y);
_firstPoint = e.Location;
break;
}
case DragType.Left:
{
Point delta = new Point(e.Location.X - _firstPoint.X, e.Location.Y - _firstPoint.Y);
_recter.Rect = new Rectangle(_recter.Rect.X + delta.X, _recter.Rect.Y, _recter.Rect.Width + delta.X * (-1), _recter.Rect.Height);
_firstPoint = e.Location;
break;
}
case DragType.Center:
{
Point delta = new Point(e.Location.X - _firstPoint.X, e.Location.Y - _firstPoint.Y);
_recter.Rect = new Rectangle(_recter.Rect.X + delta.X, _recter.Rect.Y + delta.Y, _recter.Rect.Width, _recter.Rect.Height);
_firstPoint = e.Location;
break;
}
case DragType.Bottom:
{
Point delta = new Point(e.Location.X - _firstPoint.X, e.Location.Y - _firstPoint.Y);
_recter.Rect = new Rectangle(_recter.Rect.X, _recter.Rect.Y, _recter.Rect.Width, _recter.Rect.Height + delta.Y);
_firstPoint = e.Location;
break;
}
default:
{
break;
}
}
}
if (_mouseDown)
{
Invalidate2(false);
}
base.OnMouseMove(e);
}
private void ResizeToRectangle(Point p)
{
DrawRectangle();
MouseRect.Width = p.X - MouseRect.Left;
MouseRect.Height = p.Y - MouseRect.Top;
DrawRectangle();
}
private void DrawStart(Point StartPoint)
{
this.Capture = true;
Cursor.Clip = this.RectangleToScreen(new Rectangle(0, 0, ClientSize.Width, ClientSize.Height));
MouseRect = new Rectangle(StartPoint.X, StartPoint.Y, 0, 0);
}
private void DrawRectangle()
{
Rectangle rect = this.RectangleToScreen(MouseRect);
ControlPaint.DrawReversibleFrame(rect, Color.White, FrameStyle.Dashed);
}
// List<Point> lists = new List<Point>();
//List<Control> Contrlist = null;//控件集合
private class ControlRect
{
public Control control { get; set; }
public Rectangle rects { get; set; }
}
List<ControlRect> Contrlist = null;
//List<Rectangle> rects = null;
   //bool isDrag = false;
/// <summary>
/// 鼠标单击
/// </summary>
/// <param name="e"></param>
protected override void OnMouseDown(MouseEventArgs e)
{
mouseDownPoint = e.Location;//记录初始位置
if (!ControlState)
{
Contrlist = new List<ControlRect>();
}
//当ctrl建按下时,否则new下集合
if (e.Button == MouseButtons.Left) //左键
{
_themainhost.Text = "X:" + e.Location.X.ToString() + "Y:" + e.Location.Y.ToString();
bool flag = false;
foreach (Control c in _themainhost.Controls) //遍历控件容器 看是否选中其中某几个控件
{
Rectangle r = c.Bounds;
r = _themainhost.RectangleToScreen(r);
r = this.RectangleToClient(r);
Rectangle rr = r;
rr.Inflate(10, 10);
if (rr.Contains(e.Location))
{
_recter.Rect = r;
_currentCtrl = c;
ControlProperty cp = new ControlProperty(c);
object[] obj = (object[])c.Tag;
if (obj.Length == 7)
{
List<object> list = obj.ToList();
list.Add(cp);
c.Tag = list.ToArray();
cp = list[7] as ControlProperty;
if (c is GroupBox)
{
cp.GroupName = obj[1] + "";
}
if (c is Panel)
{
cp.GroupName = obj[1] + "";
}
}
else
{
List<object> list = obj.ToList();
cp = list[7] as ControlProperty;
}
MyFormDesigner myForm = (GetForm(this) as MyFormDesigner);
myForm.propertyGrid1.SelectedObject = cp; //选中控件
_recter.IsForm = false;
flag = true;
ControlRect cr = new ControlRect();
cr.rects = r;
cr.control = c;
Contrlist.Add(cr);
//rects.Add(r);
Invalidate2(false);
//dic.Add(_currentCtrl, _recter);//将控件存起来
break;
}
}
if (!flag) //没有控件被选中,判断是否选中控件容器
{
Rectangle r = _themainhost.Bounds;
r = Parent.RectangleToScreen(r);
r = this.RectangleToClient(r);
if (r.Contains(e.Location))
{
_recter.Rect = r;
_recter.IsForm = true;
_currentCtrl = null;
ControlParentProperty cp = null;
if (_themainhost.Tag == null)
{
cp = new ControlParentProperty(_themainhost);
_themainhost.Tag = cp;
}
cp = _themainhost.Tag as ControlParentProperty;
MyFormDesigner myForm = (GetForm(this) as MyFormDesigner);
myForm.propertyGrid1.SelectedObject = cp; //选中控件容器
Invalidate2(false);
}
}
DragType dt = _recter.GetMouseDragType(e.Location); //判断是否可以进行鼠标操作
if (dt != DragType.None)
{
_mouseDown = true;
_firstPoint = e.Location;
_dragType = dt;
}
base.OnMouseDown(e);
}
//MouseIsDown = true;
//DrawStart(e.Location);
}
Rectangle MouseRect = Rectangle.Empty;
protected override void OnMouseUp(MouseEventArgs e)
{
if (e.Button == MouseButtons.Left) //左键弹起
{
#region 线
//this.Capture = false;
//Cursor.Clip = Rectangle.Empty;
//MouseIsDown = false;
//DrawRectangle();
//if (MouseRect.Width > 0)
//{
// foreach (Control ct in _themainhost.Controls)
// {
// Rectangle r = ct.Bounds;
// r = _themainhost.RectangleToScreen(r);
// r = this.RectangleToClient(r);
// Rectangle rr = r;
// rr.Inflate(10, 10);
// if (MouseRect.Contains(ct.Location))
// {
// isDrag = true;
// _recter.Rect = r;
// ControlRect cr = new ControlRect();
// cr.control = ct;
// cr.rects = _recter.Rect;
// Contrlist.Add(cr);
// }
// }
//}
#endregion
MouseRect = Rectangle.Empty;
_firstPoint = new Point();
_mouseDown = false;
_dragType = DragType.None;
Invalidate2(true);
}
base.OnMouseUp(e);
}
protected override void OnDragEnter(DragEventArgs drgevent)
{
drgevent.Effect = DragDropEffects.Copy;
base.OnDragEnter(drgevent);
}
protected override void OnDragDrop(DragEventArgs drgevent)
{
try
{
object[] strs = (object[])drgevent.Data.GetData(typeof(object[])); //获取拖拽数据
string fieldid = strs[0].ToString();
string username = strs[1].ToString();
string fieldtypeid = strs[2].ToString();
string fieldName = strs[3].ToString();
string defaultValue = strs[4].ToString();
string column_Id = strs[5].ToString();
string orderId = strs[6].ToString();
Control ctrl = ControlHelper.CreateControl(username, fieldName, Convert.ToInt32(fieldtypeid)); //实例化控件
ctrl.Location = _themainhost.PointToClient(new Point(drgevent.X, drgevent.Y)); //屏幕坐标转换成控件容器坐标
ctrl.Tag = new object[] { fieldid, username, fieldtypeid, fieldName, defaultValue, column_Id, orderId };
ControlProperty cp = null;
if (ctrl is GroupBox)
{
cp = new ControlProperty(ctrl);
_themainhost.Controls.Add(ctrl);
cp.Name = username;
ctrl.SendToBack();
}
else if (ctrl is Panel)
{
cp = new ControlProperty(ctrl);
_themainhost.Controls.Add(ctrl);
cp.Name = username;
ctrl.SendToBack();
}
else
{
cp = new ControlProperty(ctrl);
_themainhost.Controls.Add(ctrl);
ctrl.BringToFront();
}
_currentCtrl = ctrl;
(GetForm(this) as MyFormDesigner).propertyGrid1.SelectedObject = cp;
Rectangle r = _themainhost.RectangleToScreen(ctrl.Bounds);
r = this.RectangleToClient(r);
_recter.Rect = r;
_recter.IsForm = false;
Invalidate2(false);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
base.OnDragDrop(drgevent);
}
bool state = false;//鼠标弹起
bool ControlState = false;//ctrl状态
List<Recter> recters = new List<Recter>();//装控件和框的值
/// <summary>
/// 键盘处理(取消方向键对控件的焦点的控件,用自己自定义的函数处理各个方向键的处理函数)
/// </summary>
/// <param name="msg"></param>
/// <param name="keyData"></param>
/// <returns></returns>
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
switch (keyData)
{
case Keys.LButton | Keys.ShiftKey | Keys.Control:
ControlState = true;
Invalidate2(state);
return base.ProcessCmdKey(ref msg, keyData);
case Keys.Up:
if (Contrlist != null)
{
for (int i = 0; i < Contrlist.Count; i++)
{
Contrlist[i].control.Location = new Point(Contrlist[i].control.Location.X, Contrlist[i].control.Location.Y - 1);
Contrlist[i].rects = new Rectangle(Contrlist[i].rects.X, Contrlist[i].rects.Y - 1, Contrlist[i].rects.Width, Contrlist[i].rects.Height);
_recter.Rect = Contrlist[i].rects;
_firstPoint = Contrlist[i].control.Location;
}
}
break;
case Keys.Down:
if (Contrlist != null)
{
for (int i = 0; i < Contrlist.Count; i++)
{
Contrlist[i].control.Location = new Point(Contrlist[i].control.Location.X, Contrlist[i].control.Location.Y + 1);
Contrlist[i].rects = new Rectangle(Contrlist[i].rects.X, Contrlist[i].rects.Y + 1, Contrlist[i].rects.Width, Contrlist[i].rects.Height);
_recter.Rect = Contrlist[i].rects;
_firstPoint = Contrlist[i].control.Location;
}
state = false;
}
break;
case Keys.Left:
if (Contrlist != null)
{
for (int i = 0; i < Contrlist.Count; i++)
{
Contrlist[i].control.Location = new Point(Contrlist[i].control.Location.X - 1, Contrlist[i].control.Location.Y);
Contrlist[i].rects = new Rectangle(Contrlist[i].rects.X - 1, Contrlist[i].rects.Y, Contrlist[i].rects.Width, Contrlist[i].rects.Height);
_recter.Rect = Contrlist[i].rects;
_firstPoint = Contrlist[i].control.Location;
}
state = false;
}
break;
case Keys.Right:
if (Contrlist != null)
{
for (int i = 0; i < Contrlist.Count; i++)
{
Contrlist[i].control.Location = new Point(Contrlist[i].control.Location.X + 1, Contrlist[i].control.Location.Y);
Contrlist[i].rects = new Rectangle(Contrlist[i].rects.X + 1, Contrlist[i].rects.Y, Contrlist[i].rects.Width, Contrlist[i].rects.Height);
_recter.Rect = Contrlist[i].rects;
_firstPoint = Contrlist[i].control.Location;
}
state = false;
}
break;
case Keys.Left | Keys.Shift:
if (Contrlist != null)
{
_currentCtrl.Location = new Point(_currentCtrl.Location.X - 1, _currentCtrl.Location.Y);
_recter.Rect = new Rectangle(_recter.Rect.X - 1, _recter.Rect.Y, _recter.Rect.Width + 1, _recter.Rect.Height);
_firstPoint = _currentCtrl.Location;
state = true;
}
break;
case Keys.Right | Keys.Shift:
if (Contrlist != null)
{
_currentCtrl.Location = new Point(_currentCtrl.Location.X + 1, _currentCtrl.Location.Y);
_recter.Rect = new Rectangle(_recter.Rect.X + 1, _recter.Rect.Y, _recter.Rect.Width - 1, _recter.Rect.Height);
_firstPoint = _currentCtrl.Location;
state = true;
}
break;
case Keys.Up | Keys.Shift:
if (Contrlist != null)
{
_currentCtrl.Location = new Point(_currentCtrl.Location.X, _currentCtrl.Location.Y - 1);
_recter.Rect = new Rectangle(_recter.Rect.X, _recter.Rect.Y - 1, _recter.Rect.Width, _recter.Rect.Height + 1);
_firstPoint = _currentCtrl.Location;
state = true;
}
break;
case Keys.Down | Keys.Shift:
if (Contrlist != null)
{
_currentCtrl.Location = new Point(_currentCtrl.Location.X, _currentCtrl.Location.Y + 1);
_recter.Rect = new Rectangle(_recter.Rect.X, _recter.Rect.Y + 1, _recter.Rect.Width, _recter.Rect.Height - 1);
_firstPoint = _currentCtrl.Location;
state = true;
}
break;
}
Invalidate2(state);
return true;
}
protected override void OnKeyUp(KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.LButton | Keys.ShiftKey:
ControlState = false;
break;
}
}
private Form GetForm(Control ctr)
{
if (ctr is Form)
{
return ctr as Form;
}
else
{
return GetForm(ctr.Parent);
}
}
private void Invalidate2(bool mouseUp)
{
Invalidate();
if (Parent != null && ControlState == false) //更新父控件
{
Rectangle rc = new Rectangle(this.Location, this.Size);
Parent.Invalidate(rc, true);
}
if (mouseUp) //鼠标弹起 更新底层控件
{
if (Contrlist.Count> 0) //更新底层控件的位置、大小
{
Rectangle r = _recter.Rect;
r = this.RectangleToScreen(r);
r = _themainhost.RectangleToClient(r);
_currentCtrl.SetBounds(r.Left, r.Top, r.Width, r.Height);
}
else //更新控件容器大小
{
Rectangle r = _recter.Rect;
r = this.RectangleToScreen(r);
r = Parent.RectangleToClient(r);
_themainhost.SetBounds(r.Left, r.Top, r.Width, r.Height);
}
}
SetProp();
}
public void SetProp()
{
if (_currentCtrl != null)
{
object[] obj = (object[])_currentCtrl.Tag;
ControlProperty cp = obj[obj.Length - 1] as ControlProperty;
if (cp != null)
{
cp.Width = _currentCtrl.Width;
cp.Height = _currentCtrl.Height;
cp.Top = _currentCtrl.Top;
cp.Left = _currentCtrl.Left;
cp.TabIndex = _currentCtrl.TabIndex;
}
}
else
{
if (_themainhost.Tag != null)
{
ControlParentProperty cpp = _themainhost.Tag as ControlParentProperty;
cpp.Width = _themainhost.Width;
cpp.Height = _themainhost.Height;
}
}
}
}
}
#endregion
@@ -0,0 +1,120 @@
<?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>
</root>
@@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.IO;
namespace MyFormDesinger {
static class Program {
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
try
{
MyFormDesigner myFormDesigner = new MyFormDesigner();
// myFormDesigner.FrmKey = "70393AA6-1B68-48E2-8540-4386666352D0";
// myFormDesigner.SelectSQL = @"select b.orderid,b.id as fieldid,fieldname,username1 as username,
// fieldsqltag as fieldtypeid,defaultdate as defaultValue
// from p_systemDlltab a
// left join p_systemwordbooktab b on a.DllCoid=b.tab where a.formkey='70393AA6-1B68-48E2-8540-4386666352D0' and fieldsqltag<>3 and username1 is not null and isnull(addVisible,0)=0";
// myFormDesigner.updateSQL = @"update p_systemwordbooktab set controlleft=b.controlleft ,controlTop=b.controlTop, controlHeight=b.controlHeight,controlWidth=b.controlWidth, tabOrder=b.tabOrder from p_systemControlLocation b where p_systemwordbooktab.formKey=b.formKey and p_systemwordbooktab.id=b.fieldId and b.formkey='70393AA6-1B68-48E2-8540-4386666352D0'";
//MessageBox.Show(args.Length+"");
myFormDesigner.FrmKey = args[0];
myFormDesigner.SelectSQL = args[1];
myFormDesigner.updateSQL = args[2];
if (!string.IsNullOrEmpty(args[3]))
{
// 打开基础档案设计界面
if ("1".Equals(args[3]))
{
myFormDesigner.SelectSQL = @"select b.orderid,b.id as fieldid,fieldname,username1 as username,
fieldsqltag as fieldtypeid,defaultdate as defaultValue
from p_systemDlltab a
left join p_systemwordbooktab b on a.DllCoid=b.tab where a.formkey='" + myFormDesigner.FrmKey + "' and fieldsqltag<>3 and username1 is not null and isnull(addVisible,0)=0";
myFormDesigner.updateSQL = @"update p_systemwordbooktab set controlleft=b.controlleft ,controlTop=b.controlTop, controlHeight=b.controlHeight,controlWidth=b.controlWidth, tabOrder=b.tabOrder
from p_systemControlLocation b where p_systemwordbooktab.formKey=b.formKey and p_systemwordbooktab.id=b.fieldId and b.formkey='" + myFormDesigner.FrmKey + "'";
}
else if ("2".Equals(args[3]))
{
// 打开单据设计界面
myFormDesigner.SelectSQL = @"select b.orderid,b.id as fieldid,sysname,username as username,
fieldTypeId as fieldtypeid,defaultValue as defaultValue
from p_systembilltype a
left join P_systembillinfo b on a.typecode=b.typecode where a.formkey='" + myFormDesigner.FrmKey + "' and fieldTypeId<>3 and userName is not null";
myFormDesigner.updateSQL = @"update P_systembillinfo set controlleft=b.controlleft ,controlTop=b.controlTop, controlHeight=b.controlHeight,controlWidth=b.controlWidth, tabOrder=b.tabOrder
from p_systemControlLocation b where P_systembillinfo.formKey=b.formKey and P_systembillinfo.id=b.fieldId and b.formkey='" + myFormDesigner.FrmKey + "'";
}
}
File.WriteAllLines("myformDesinger.txt", args);
Application.Run(myFormDesigner);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("MyFormDesinger")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MyFormDesinger")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 属性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("a67109ae-5323-4bf0-96af-f8dd397cb387")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 内部版本号
// 修订号
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,581 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.1
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace MyFormDesinger.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MyFormDesinger.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 使用此强类型资源类,为所有资源查找
/// 重写当前线程的 CurrentUICulture 属性。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
internal static System.Drawing.Bitmap AddFile_16x16 {
get {
object obj = ResourceManager.GetObject("AddFile_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap AddFile_32x32 {
get {
object obj = ResourceManager.GetObject("AddFile_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap AddFolder_16x16 {
get {
object obj = ResourceManager.GetObject("AddFolder_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap AddFolder_32x32 {
get {
object obj = ResourceManager.GetObject("AddFolder_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap AddToAlbum_16x16 {
get {
object obj = ResourceManager.GetObject("AddToAlbum_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap AddToAlbum_32x32 {
get {
object obj = ResourceManager.GetObject("AddToAlbum_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap AddToLibrary_16x16 {
get {
object obj = ResourceManager.GetObject("AddToLibrary_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap AddToLibrary_32x32 {
get {
object obj = ResourceManager.GetObject("AddToLibrary_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Album_16x16 {
get {
object obj = ResourceManager.GetObject("Album_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Album_32x32 {
get {
object obj = ResourceManager.GetObject("Album_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Back_16x16 {
get {
object obj = ResourceManager.GetObject("Back_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Back_32x32 {
get {
object obj = ResourceManager.GetObject("Back_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Cancel_16x16 {
get {
object obj = ResourceManager.GetObject("Cancel_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Cancel_32x32 {
get {
object obj = ResourceManager.GetObject("Cancel_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Close_16x16 {
get {
object obj = ResourceManager.GetObject("Close_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Close_32x32 {
get {
object obj = ResourceManager.GetObject("Close_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Collage_16x16 {
get {
object obj = ResourceManager.GetObject("Collage_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Collage_32x32 {
get {
object obj = ResourceManager.GetObject("Collage_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Edit_16x16 {
get {
object obj = ResourceManager.GetObject("Edit_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Edit_32x32 {
get {
object obj = ResourceManager.GetObject("Edit_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap EMail_16x16 {
get {
object obj = ResourceManager.GetObject("EMail_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap EMail_32x32 {
get {
object obj = ResourceManager.GetObject("EMail_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Export_16x16 {
get {
object obj = ResourceManager.GetObject("Export_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Export_32x32 {
get {
object obj = ResourceManager.GetObject("Export_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Film_16x16 {
get {
object obj = ResourceManager.GetObject("Film_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Film_32x32 {
get {
object obj = ResourceManager.GetObject("Film_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Filter_16x16 {
get {
object obj = ResourceManager.GetObject("Filter_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Filter_32x32 {
get {
object obj = ResourceManager.GetObject("Filter_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap FilterSample {
get {
object obj = ResourceManager.GetObject("FilterSample", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Folder_16x16 {
get {
object obj = ResourceManager.GetObject("Folder_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Folder_32x32 {
get {
object obj = ResourceManager.GetObject("Folder_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Forward_16x16 {
get {
object obj = ResourceManager.GetObject("Forward_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Forward_32x32 {
get {
object obj = ResourceManager.GetObject("Forward_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap GenerateData_16x16 {
get {
object obj = ResourceManager.GetObject("GenerateData_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap GenerateData_32x32 {
get {
object obj = ResourceManager.GetObject("GenerateData_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Help_16x16 {
get {
object obj = ResourceManager.GetObject("Help_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Help_32x32 {
get {
object obj = ResourceManager.GetObject("Help_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap ItemMarked_16x16 {
get {
object obj = ResourceManager.GetObject("ItemMarked_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap ItemMarked_32x32 {
get {
object obj = ResourceManager.GetObject("ItemMarked_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Library_16x16 {
get {
object obj = ResourceManager.GetObject("Library_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Library_32x32 {
get {
object obj = ResourceManager.GetObject("Library_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Mark_16x16 {
get {
object obj = ResourceManager.GetObject("Mark_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Mark_32x32 {
get {
object obj = ResourceManager.GetObject("Mark_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap NewAlbum_16x16 {
get {
object obj = ResourceManager.GetObject("NewAlbum_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap NewAlbum_32x32 {
get {
object obj = ResourceManager.GetObject("NewAlbum_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Other_16x16 {
get {
object obj = ResourceManager.GetObject("Other_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Other_32x32 {
get {
object obj = ResourceManager.GetObject("Other_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Print_16x16 {
get {
object obj = ResourceManager.GetObject("Print_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Print_32x32 {
get {
object obj = ResourceManager.GetObject("Print_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Remove_16x16 {
get {
object obj = ResourceManager.GetObject("Remove_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Remove_32x32 {
get {
object obj = ResourceManager.GetObject("Remove_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap RemoveAlbum_16x16 {
get {
object obj = ResourceManager.GetObject("RemoveAlbum_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap RemoveAlbum_32x32 {
get {
object obj = ResourceManager.GetObject("RemoveAlbum_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap RemoveFolder_16x16 {
get {
object obj = ResourceManager.GetObject("RemoveFolder_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap RemoveFolder_32x32 {
get {
object obj = ResourceManager.GetObject("RemoveFolder_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap RemoveFromAlbum_16x16 {
get {
object obj = ResourceManager.GetObject("RemoveFromAlbum_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap RemoveFromAlbum_32x32 {
get {
object obj = ResourceManager.GetObject("RemoveFromAlbum_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Save_16x16 {
get {
object obj = ResourceManager.GetObject("Save_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Save_32x32 {
get {
object obj = ResourceManager.GetObject("Save_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap SelectAllMarked_16x16 {
get {
object obj = ResourceManager.GetObject("SelectAllMarked_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap SelectAllMarked_32x32 {
get {
object obj = ResourceManager.GetObject("SelectAllMarked_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Slideshow_16x16 {
get {
object obj = ResourceManager.GetObject("Slideshow_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Slideshow_32x32 {
get {
object obj = ResourceManager.GetObject("Slideshow_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Tile {
get {
object obj = ResourceManager.GetObject("Tile", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Undo_16x16 {
get {
object obj = ResourceManager.GetObject("Undo_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Undo_32x32 {
get {
object obj = ResourceManager.GetObject("Undo_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Unmark_16x16 {
get {
object obj = ResourceManager.GetObject("Unmark_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Unmark_32x32 {
get {
object obj = ResourceManager.GetObject("Unmark_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap UnmarkAll_16x16 {
get {
object obj = ResourceManager.GetObject("UnmarkAll_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap UnmarkAll_32x32 {
get {
object obj = ResourceManager.GetObject("UnmarkAll_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Upload_16x16 {
get {
object obj = ResourceManager.GetObject("Upload_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap Upload_32x32 {
get {
object obj = ResourceManager.GetObject("Upload_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap View_16x16 {
get {
object obj = ResourceManager.GetObject("View_16x16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap View_32x32 {
get {
object obj = ResourceManager.GetObject("View_32x32", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}
@@ -0,0 +1,343 @@
<?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>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="AddFile_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddFile_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AddFile_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddFile_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AddFolder_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddFolder_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AddFolder_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddFolder_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AddToAlbum_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddToAlbum_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AddToAlbum_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddToAlbum_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AddToLibrary_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddToLibrary_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AddToLibrary_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddToLibrary_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Album_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Album_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Album_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Album_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Back_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Back_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Back_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Back_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Cancel_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Cancel_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Cancel_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Cancel_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Close_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Close_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Close_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Close_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Collage_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Collage_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Collage_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Collage_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Edit_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Edit_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Edit_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Edit_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="EMail_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\EMail_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="EMail_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\EMail_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Export_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Export_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Export_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Export_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Film_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Film_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Film_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Film_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="FilterSample" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\FilterSample.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Filter_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Filter_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Filter_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Filter_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Folder_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Folder_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Folder_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Folder_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Forward_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Forward_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Forward_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Forward_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="GenerateData_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\GenerateData_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="GenerateData_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\GenerateData_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Help_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Help_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Help_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Help_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ItemMarked_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ItemMarked_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ItemMarked_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ItemMarked_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Library_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Library_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Library_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Library_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Mark_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Mark_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Mark_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Mark_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="NewAlbum_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\NewAlbum_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="NewAlbum_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\NewAlbum_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Other_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Other_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Other_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Other_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Print_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Print_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Print_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Print_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="RemoveAlbum_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\RemoveAlbum_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="RemoveAlbum_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\RemoveAlbum_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="RemoveFolder_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\RemoveFolder_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="RemoveFolder_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\RemoveFolder_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="RemoveFromAlbum_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\RemoveFromAlbum_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="RemoveFromAlbum_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\RemoveFromAlbum_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Remove_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Remove_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Remove_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Remove_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Save_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Save_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Save_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Save_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SelectAllMarked_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\SelectAllMarked_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SelectAllMarked_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\SelectAllMarked_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Slideshow_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Slideshow_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Slideshow_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Slideshow_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Tile" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Tile.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Undo_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Undo_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Undo_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Undo_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="UnmarkAll_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\UnmarkAll_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="UnmarkAll_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\UnmarkAll_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Unmark_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Unmark_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Unmark_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Unmark_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Upload_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Upload_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Upload_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Upload_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="View_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\View_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="View_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\View_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.1
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace MyFormDesinger.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 871 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 907 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 921 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 887 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 804 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 943 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Some files were not shown because too many files have changed in this diff Show More