Commit for development environment setup
This commit is contained in:
91
PROMS/DropDownPanel_sol/Demo/Demo.csproj
Normal file
91
PROMS/DropDownPanel_sol/Demo/Demo.csproj
Normal file
@@ -0,0 +1,91 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{A6BD962C-CAD5-400E-A8E2-0EF03B3CA8A4}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Demo</RootNamespace>
|
||||
<AssemblyName>Demo</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</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>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<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="DerivedTreeCombo.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DropDownNode.cs" />
|
||||
<Compile Include="DropDownTree.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainForm.Designer.cs">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="MainForm.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</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>
|
||||
</Compile>
|
||||
<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>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DropDownPanel\DropDownPanel.csproj">
|
||||
<Project>{34ADDF19-CBBA-4A11-BC99-D141BA2D29EC}</Project>
|
||||
<Name>DropDownPanel</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\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>
|
53
PROMS/DropDownPanel_sol/Demo/DerivedTreeCombo.cs
Normal file
53
PROMS/DropDownPanel_sol/Demo/DerivedTreeCombo.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using AT.STO.UI.Win;
|
||||
|
||||
namespace Demo
|
||||
{
|
||||
internal class DerivedTreeCombo : DropDownPanel
|
||||
{
|
||||
#region Constructor / Destructor
|
||||
public DerivedTreeCombo() : base()
|
||||
{
|
||||
// The base class's property must be set because
|
||||
// this derived implementation hides the setter.
|
||||
base.DropDownControl = new DropDownTree();
|
||||
this.DropDownControl.BorderStyle = BorderStyle.None;
|
||||
}
|
||||
#endregion
|
||||
#region Public Properties
|
||||
/// <summary>
|
||||
/// Returns the DateRangePicker, that is displayed in the dropdown.
|
||||
/// </summary>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public new DropDownTree DropDownControl // new is on purpose to change the property's data type and to hide the setter.
|
||||
{
|
||||
get
|
||||
{
|
||||
if (base.DropDownControl != null)
|
||||
{
|
||||
return base.DropDownControl as DropDownTree;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public new DropDownNode Value
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.DropDownControl != null)
|
||||
{
|
||||
return this.DropDownControl.Value as DropDownNode;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
set { base.Value = value; }
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
66
PROMS/DropDownPanel_sol/Demo/DropDownNode.cs
Normal file
66
PROMS/DropDownPanel_sol/Demo/DropDownNode.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using AT.STO.UI.Win;
|
||||
|
||||
namespace Demo
|
||||
{
|
||||
internal class DropDownNode : TreeNode, ILookupItem<long>
|
||||
{
|
||||
#region Private Variable Declarations
|
||||
private long _id = 0;
|
||||
#endregion
|
||||
#region Constructor / Destructor
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public DropDownNode() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// /// <summary>
|
||||
/// Some constructors initializing the node with Id.
|
||||
/// </summary>
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <param name="Text"></param>
|
||||
public DropDownNode(long Id, string Text) : base(Text)
|
||||
{
|
||||
_id = Id;
|
||||
}
|
||||
|
||||
public DropDownNode(long Id, string Text, DropDownNode[] Children) : base(Text, Children)
|
||||
{
|
||||
_id = Id;
|
||||
}
|
||||
|
||||
public DropDownNode(long Id, string Text, int ImageIndex, int SelectedImageIndex) : base(Text, ImageIndex, SelectedImageIndex)
|
||||
{
|
||||
_id = Id;
|
||||
}
|
||||
|
||||
public DropDownNode(long Id, string Text, int ImageIndex, int SelectedImageIndex, DropDownNode[] Children) : base(Text, ImageIndex, SelectedImageIndex, Children)
|
||||
{
|
||||
_id = Id;
|
||||
}
|
||||
#endregion
|
||||
#region Public Methods
|
||||
public override string ToString()
|
||||
{
|
||||
return this.GetType().Name + " (Id=" + Id.ToString() + ", Name=" + Text + ")";
|
||||
}
|
||||
#endregion
|
||||
#region ILookupItem<long> Implementation
|
||||
public long Id
|
||||
{
|
||||
get { return _id; }
|
||||
}
|
||||
|
||||
public new string Text
|
||||
{
|
||||
get { return base.Text; }
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
86
PROMS/DropDownPanel_sol/Demo/DropDownTree.cs
Normal file
86
PROMS/DropDownPanel_sol/Demo/DropDownTree.cs
Normal file
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using AT.STO.UI.Win;
|
||||
|
||||
namespace Demo
|
||||
{
|
||||
internal class DropDownTree : TreeView, IDropDownAware
|
||||
{
|
||||
#region DropDownTree
|
||||
public DropDownTree()
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
#region TreeView Events
|
||||
/// <summary>
|
||||
/// Allow keeping track of the editing process.
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnAfterSelect(TreeViewEventArgs e)
|
||||
{
|
||||
base.OnAfterSelect(e);
|
||||
|
||||
if (ValueChanged != null)
|
||||
{
|
||||
ValueChanged(this, new DropDownValueChangedEventArgs(e.Node));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A double click on a node counts as finish editing.
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnDoubleClick(EventArgs e)
|
||||
{
|
||||
base.OnDoubleClick(e);
|
||||
|
||||
TreeNode node = HitTest(PointToClient(Cursor.Position)).Node;
|
||||
|
||||
if ((FinishEditing != null) && (node != null))
|
||||
{
|
||||
FinishEditing(this, new DropDownValueChangedEventArgs(node));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ENNTER counts as finish editing, ESC as cancel (null is returned).
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnKeyUp(KeyEventArgs e)
|
||||
{
|
||||
base.OnKeyUp(e);
|
||||
|
||||
if (FinishEditing != null)
|
||||
{
|
||||
switch (e.KeyCode)
|
||||
{
|
||||
case Keys.Enter:
|
||||
FinishEditing(this, new DropDownValueChangedEventArgs(Value));
|
||||
break;
|
||||
case Keys.Escape:
|
||||
FinishEditing(this, new DropDownValueChangedEventArgs(null));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region IDropDownAware Implementation
|
||||
public event DropDownValueChangedEventHandler FinishEditing;
|
||||
public event DropDownValueChangedEventHandler ValueChanged;
|
||||
|
||||
public object Value
|
||||
{
|
||||
get { return base.SelectedNode; }
|
||||
set
|
||||
{
|
||||
if (value is DropDownNode)
|
||||
{
|
||||
base.SelectedNode = value as DropDownNode;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
114
PROMS/DropDownPanel_sol/Demo/MainForm.Designer.cs
generated
Normal file
114
PROMS/DropDownPanel_sol/Demo/MainForm.Designer.cs
generated
Normal file
@@ -0,0 +1,114 @@
|
||||
namespace Demo
|
||||
{
|
||||
partial class MainForm
|
||||
{
|
||||
/// <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.onTheFlyBox = new System.Windows.Forms.GroupBox();
|
||||
this.treePanel = new AT.STO.UI.Win.DropDownPanel();
|
||||
this.txtMsg = new System.Windows.Forms.TextBox();
|
||||
this.derivedPanel = new System.Windows.Forms.GroupBox();
|
||||
this.derivedTreeCombo = new Demo.DerivedTreeCombo();
|
||||
this.onTheFlyBox.SuspendLayout();
|
||||
this.derivedPanel.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// onTheFlyBox
|
||||
//
|
||||
this.onTheFlyBox.Controls.Add(this.treePanel);
|
||||
this.onTheFlyBox.Location = new System.Drawing.Point(12, 12);
|
||||
this.onTheFlyBox.Name = "onTheFlyBox";
|
||||
this.onTheFlyBox.Size = new System.Drawing.Size(171, 71);
|
||||
this.onTheFlyBox.TabIndex = 1;
|
||||
this.onTheFlyBox.TabStop = false;
|
||||
this.onTheFlyBox.Text = "create control on the fly";
|
||||
//
|
||||
// treePanel
|
||||
//
|
||||
this.treePanel.Location = new System.Drawing.Point(21, 31);
|
||||
this.treePanel.Name = "treePanel";
|
||||
this.treePanel.Size = new System.Drawing.Size(124, 21);
|
||||
this.treePanel.TabIndex = 1;
|
||||
//
|
||||
// txtMsg
|
||||
//
|
||||
this.txtMsg.AcceptsReturn = true;
|
||||
this.txtMsg.Anchor = ((System.Windows.Forms.AnchorStyles) ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtMsg.Location = new System.Drawing.Point(3, 175);
|
||||
this.txtMsg.Multiline = true;
|
||||
this.txtMsg.Name = "txtMsg";
|
||||
this.txtMsg.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||
this.txtMsg.Size = new System.Drawing.Size(464, 152);
|
||||
this.txtMsg.TabIndex = 2;
|
||||
//
|
||||
// derivedPanel
|
||||
//
|
||||
this.derivedPanel.Controls.Add(this.derivedTreeCombo);
|
||||
this.derivedPanel.Location = new System.Drawing.Point(12, 89);
|
||||
this.derivedPanel.Name = "derivedPanel";
|
||||
this.derivedPanel.Size = new System.Drawing.Size(171, 71);
|
||||
this.derivedPanel.TabIndex = 4;
|
||||
this.derivedPanel.TabStop = false;
|
||||
this.derivedPanel.Text = "derived control";
|
||||
//
|
||||
// derivedTreeCombo
|
||||
//
|
||||
this.derivedTreeCombo.Location = new System.Drawing.Point(21, 31);
|
||||
this.derivedTreeCombo.Name = "derivedTreeCombo";
|
||||
this.derivedTreeCombo.Size = new System.Drawing.Size(124, 21);
|
||||
this.derivedTreeCombo.TabIndex = 4;
|
||||
this.derivedTreeCombo.Value = null;
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(467, 331);
|
||||
this.Controls.Add(this.derivedPanel);
|
||||
this.Controls.Add(this.txtMsg);
|
||||
this.Controls.Add(this.onTheFlyBox);
|
||||
this.Name = "MainForm";
|
||||
this.Text = "Main";
|
||||
this.onTheFlyBox.ResumeLayout(false);
|
||||
this.derivedPanel.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox onTheFlyBox;
|
||||
private AT.STO.UI.Win.DropDownPanel treePanel;
|
||||
private System.Windows.Forms.TextBox txtMsg;
|
||||
private System.Windows.Forms.GroupBox derivedPanel;
|
||||
private DerivedTreeCombo derivedTreeCombo;
|
||||
}
|
||||
}
|
||||
|
110
PROMS/DropDownPanel_sol/Demo/MainForm.cs
Normal file
110
PROMS/DropDownPanel_sol/Demo/MainForm.cs
Normal file
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using AT.STO.UI.Win;
|
||||
|
||||
namespace Demo
|
||||
{
|
||||
public partial class MainForm : Form
|
||||
{
|
||||
#region Constructor / Destructor
|
||||
public MainForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
#endregion
|
||||
#region Form Events
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
InitializeDerived();
|
||||
InitializePanel();
|
||||
}
|
||||
#endregion
|
||||
#region Event Handler
|
||||
private void DropDown_FinishEditing(object sender, DropDownValueChangedEventArgs e)
|
||||
{
|
||||
LogEvent((sender as Control).Name + ".FinishEditing", e.Value);
|
||||
}
|
||||
|
||||
private void DropDown_ValueChanged(object sender, DropDownValueChangedEventArgs e)
|
||||
{
|
||||
LogEvent((sender as Control).Name + ".ValueChanged", e.Value);
|
||||
}
|
||||
#endregion
|
||||
#region Private Methods
|
||||
/// <summary>
|
||||
/// Populates a given DropDownTree.
|
||||
/// </summary>
|
||||
/// <param name="Tree"></param>
|
||||
private void CreateNodes(DropDownTree Tree)
|
||||
{
|
||||
DropDownNode root = new DropDownNode(1, "1");
|
||||
|
||||
Tree.Nodes.Clear();
|
||||
Tree.Nodes.Add(root);
|
||||
|
||||
for (int i = 1; i <= 20; i++)
|
||||
{
|
||||
DropDownNode node = new DropDownNode(i * 1000, "1." + i.ToString("00"));
|
||||
root.Nodes.Add(node);
|
||||
|
||||
for (int j = 1; j <= 2; j++)
|
||||
{
|
||||
node.Nodes.Add(new DropDownNode((i * 1000) + (j * 10), "1." + i.ToString("00") + "." + j.ToString()));
|
||||
}
|
||||
}
|
||||
|
||||
root.Expand();
|
||||
}
|
||||
|
||||
private DropDownTree CreateTree()
|
||||
{
|
||||
DropDownTree tree = new DropDownTree();
|
||||
|
||||
tree.BorderStyle = BorderStyle.None; // border is drawn by the DropDownForm.
|
||||
tree.Size = new Size(200, 300); // the DropDownPanel will be sized to make the tree fit.
|
||||
|
||||
CreateNodes(tree);
|
||||
|
||||
return tree;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create and initialize the DerivedTreeCombo.
|
||||
/// </summary>
|
||||
private void InitializeDerived()
|
||||
{
|
||||
derivedTreeCombo.DropDownControl.Size = new Size(200, 300);
|
||||
CreateNodes(derivedTreeCombo.DropDownControl);
|
||||
|
||||
derivedTreeCombo.FinishEditing += new DropDownValueChangedEventHandler(DropDown_FinishEditing);
|
||||
derivedTreeCombo.ValueChanged += new DropDownValueChangedEventHandler(DropDown_ValueChanged);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create and initialize the DropDownTree.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void InitializePanel()
|
||||
{
|
||||
treePanel.DropDownControl = CreateTree(); // make the DropDownTree the DropDownPanels control to display.
|
||||
treePanel.FinishEditing += new DropDownValueChangedEventHandler(DropDown_FinishEditing);
|
||||
treePanel.ValueChanged += new DropDownValueChangedEventHandler(DropDown_ValueChanged);
|
||||
}
|
||||
|
||||
private void LogEvent(string Event, object Value)
|
||||
{
|
||||
if (txtMsg.Lines.Length > 20)
|
||||
{
|
||||
txtMsg.Clear();
|
||||
}
|
||||
|
||||
txtMsg.AppendText(Event + ": " + ((Value == null) ? "user canceled" : Value.ToString()) + "\r\n");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
120
PROMS/DropDownPanel_sol/Demo/MainForm.resx
Normal file
120
PROMS/DropDownPanel_sol/Demo/MainForm.resx
Normal file
@@ -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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
20
PROMS/DropDownPanel_sol/Demo/Program.cs
Normal file
20
PROMS/DropDownPanel_sol/Demo/Program.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Demo
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainForm());
|
||||
}
|
||||
}
|
||||
}
|
33
PROMS/DropDownPanel_sol/Demo/Properties/AssemblyInfo.cs
Normal file
33
PROMS/DropDownPanel_sol/Demo/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Demo")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Demo")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2007")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("f6481bce-6b99-4def-b7d9-f811792f5e73")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
71
PROMS/DropDownPanel_sol/Demo/Properties/Resources.Designer.cs
generated
Normal file
71
PROMS/DropDownPanel_sol/Demo/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Demo.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.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>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Demo.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
117
PROMS/DropDownPanel_sol/Demo/Properties/Resources.resx
Normal file
117
PROMS/DropDownPanel_sol/Demo/Properties/Resources.resx
Normal file
@@ -0,0 +1,117 @@
|
||||
<?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.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: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" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</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" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
30
PROMS/DropDownPanel_sol/Demo/Properties/Settings.Designer.cs
generated
Normal file
30
PROMS/DropDownPanel_sol/Demo/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Demo.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.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>
|
Reference in New Issue
Block a user