StartInstantlySample
This commit is contained in:
Родитель
9ef810977b
Коммит
3a5d6dd83f
|
@ -0,0 +1,20 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RadControlsApp", "RadControlsApp\RadControlsApp.csproj", "{58A8CA4E-7F02-487D-8063-A548293A9AF9}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{58A8CA4E-7F02-487D-8063-A548293A9AF9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{58A8CA4E-7F02-487D-8063-A548293A9AF9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{58A8CA4E-7F02-487D-8063-A548293A9AF9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{58A8CA4E-7F02-487D-8063-A548293A9AF9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,57 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace RadControlsApp
|
||||
{
|
||||
class Customer
|
||||
{
|
||||
private int id;
|
||||
private string name;
|
||||
private string address;
|
||||
|
||||
public int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return id;
|
||||
}
|
||||
set
|
||||
{
|
||||
id = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return name;
|
||||
}
|
||||
set
|
||||
{
|
||||
name = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string Address
|
||||
{
|
||||
get
|
||||
{
|
||||
return address;
|
||||
}
|
||||
set
|
||||
{
|
||||
address = value;
|
||||
}
|
||||
}
|
||||
|
||||
public Customer(int id, string name, string address)
|
||||
{
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.address = address;
|
||||
}
|
||||
}
|
||||
}
|
187
Genral_All_Controls/StartInstantlySample/RadControlsAppCS/RadControlsApp/RadControlsApp/MainForm.Designer.cs
сгенерированный
Normal file
187
Genral_All_Controls/StartInstantlySample/RadControlsAppCS/RadControlsApp/RadControlsApp/MainForm.Designer.cs
сгенерированный
Normal file
|
@ -0,0 +1,187 @@
|
|||
namespace RadControlsApp
|
||||
{
|
||||
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.radDock1 = new Telerik.WinControls.UI.Docking.RadDock();
|
||||
this.documentWindow1 = new Telerik.WinControls.UI.Docking.DocumentWindow();
|
||||
this.toolTabStrip1 = new Telerik.WinControls.UI.Docking.ToolTabStrip();
|
||||
this.toolWindow1 = new Telerik.WinControls.UI.Docking.ToolWindow();
|
||||
this.radGridView1 = new Telerik.WinControls.UI.RadGridView();
|
||||
this.documentContainer1 = new Telerik.WinControls.UI.Docking.DocumentContainer();
|
||||
this.documentTabStrip1 = new Telerik.WinControls.UI.Docking.DocumentTabStrip();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radDock1)).BeginInit();
|
||||
this.radDock1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.toolTabStrip1)).BeginInit();
|
||||
this.toolTabStrip1.SuspendLayout();
|
||||
this.toolWindow1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radGridView1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radGridView1.MasterTemplate)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.documentContainer1)).BeginInit();
|
||||
this.documentContainer1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.documentTabStrip1)).BeginInit();
|
||||
this.documentTabStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// radDock1
|
||||
//
|
||||
this.radDock1.ActiveWindow = this.toolWindow1;
|
||||
this.radDock1.CausesValidation = false;
|
||||
this.radDock1.Controls.Add(this.toolTabStrip1);
|
||||
this.radDock1.Controls.Add(this.documentContainer1);
|
||||
this.radDock1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.radDock1.DocumentManager.DocumentInsertOrder = Telerik.WinControls.UI.Docking.DockWindowInsertOrder.InFront;
|
||||
this.radDock1.IsCleanUpTarget = true;
|
||||
this.radDock1.Location = new System.Drawing.Point(0, 0);
|
||||
this.radDock1.MainDocumentContainer = this.documentContainer1;
|
||||
this.radDock1.Name = "radDock1";
|
||||
this.radDock1.Padding = new System.Windows.Forms.Padding(5);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.radDock1.RootElement.MinSize = new System.Drawing.Size(25, 25);
|
||||
this.radDock1.RootElement.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.radDock1.Size = new System.Drawing.Size(583, 452);
|
||||
this.radDock1.SplitterWidth = 4;
|
||||
this.radDock1.TabIndex = 0;
|
||||
this.radDock1.TabStop = false;
|
||||
this.radDock1.Text = "radDock1";
|
||||
//
|
||||
// documentWindow1
|
||||
//
|
||||
this.documentWindow1.Location = new System.Drawing.Point(6, 30);
|
||||
this.documentWindow1.Name = "documentWindow1";
|
||||
this.documentWindow1.Size = new System.Drawing.Size(199, 406);
|
||||
this.documentWindow1.Text = "documentWindow1";
|
||||
//
|
||||
// toolTabStrip1
|
||||
//
|
||||
this.toolTabStrip1.Controls.Add(this.toolWindow1);
|
||||
this.toolTabStrip1.Location = new System.Drawing.Point(5, 5);
|
||||
this.toolTabStrip1.Name = "toolTabStrip1";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.toolTabStrip1.RootElement.MinSize = new System.Drawing.Size(25, 25);
|
||||
this.toolTabStrip1.SelectedIndex = 0;
|
||||
this.toolTabStrip1.Size = new System.Drawing.Size(358, 442);
|
||||
this.toolTabStrip1.SizeInfo.AbsoluteSize = new System.Drawing.Size(358, 200);
|
||||
this.toolTabStrip1.SizeInfo.SplitterCorrection = new System.Drawing.Size(158, 0);
|
||||
this.toolTabStrip1.TabIndex = 1;
|
||||
this.toolTabStrip1.TabStop = false;
|
||||
//
|
||||
// toolWindow1
|
||||
//
|
||||
this.toolWindow1.Controls.Add(this.radGridView1);
|
||||
this.toolWindow1.Location = new System.Drawing.Point(1, 24);
|
||||
this.toolWindow1.Name = "toolWindow1";
|
||||
this.toolWindow1.Size = new System.Drawing.Size(356, 416);
|
||||
this.toolWindow1.Text = "toolWindow1";
|
||||
//
|
||||
// radGridView1
|
||||
//
|
||||
this.radGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.radGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.radGridView1.Name = "radGridView1";
|
||||
this.radGridView1.Size = new System.Drawing.Size(356, 416);
|
||||
this.radGridView1.TabIndex = 0;
|
||||
this.radGridView1.Text = "radGridView1";
|
||||
//
|
||||
// documentContainer1
|
||||
//
|
||||
this.documentContainer1.CausesValidation = false;
|
||||
this.documentContainer1.Controls.Add(this.documentTabStrip1);
|
||||
this.documentContainer1.Location = new System.Drawing.Point(367, 5);
|
||||
this.documentContainer1.Name = "documentContainer1";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.documentContainer1.RootElement.MinSize = new System.Drawing.Size(25, 25);
|
||||
this.documentContainer1.Size = new System.Drawing.Size(211, 442);
|
||||
this.documentContainer1.SizeInfo.AbsoluteSize = new System.Drawing.Size(211, 200);
|
||||
this.documentContainer1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Fill;
|
||||
this.documentContainer1.SizeInfo.SplitterCorrection = new System.Drawing.Size(-158, 0);
|
||||
this.documentContainer1.SplitterWidth = 4;
|
||||
this.documentContainer1.TabIndex = 0;
|
||||
this.documentContainer1.TabStop = false;
|
||||
//
|
||||
// documentTabStrip1
|
||||
//
|
||||
this.documentTabStrip1.CausesValidation = false;
|
||||
this.documentTabStrip1.Controls.Add(this.documentWindow1);
|
||||
this.documentTabStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.documentTabStrip1.Name = "documentTabStrip1";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.documentTabStrip1.RootElement.MinSize = new System.Drawing.Size(25, 25);
|
||||
this.documentTabStrip1.SelectedIndex = 0;
|
||||
this.documentTabStrip1.Size = new System.Drawing.Size(211, 442);
|
||||
this.documentTabStrip1.TabIndex = 0;
|
||||
this.documentTabStrip1.TabStop = false;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(583, 452);
|
||||
this.Controls.Add(this.radDock1);
|
||||
this.Name = "Form1";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.RootElement.ApplyShapeToControl = true;
|
||||
((System.ComponentModel.ISupportInitialize)(this.radDock1)).EndInit();
|
||||
this.radDock1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.toolTabStrip1)).EndInit();
|
||||
this.toolTabStrip1.ResumeLayout(false);
|
||||
this.toolWindow1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.radGridView1.MasterTemplate)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.radGridView1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.documentContainer1)).EndInit();
|
||||
this.documentContainer1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.documentTabStrip1)).EndInit();
|
||||
this.documentTabStrip1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Telerik.WinControls.UI.Docking.RadDock radDock1;
|
||||
private Telerik.WinControls.UI.Docking.DocumentContainer documentContainer1;
|
||||
private Telerik.WinControls.UI.Docking.DocumentWindow documentWindow1;
|
||||
private Telerik.WinControls.UI.Docking.DocumentTabStrip documentTabStrip1;
|
||||
private Telerik.WinControls.UI.Docking.ToolTabStrip toolTabStrip1;
|
||||
private Telerik.WinControls.UI.Docking.ToolWindow toolWindow1;
|
||||
private Telerik.WinControls.UI.RadGridView radGridView1;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
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 Telerik.WinControls.UI;
|
||||
|
||||
namespace RadControlsApp
|
||||
{
|
||||
public partial class MainForm : RadForm
|
||||
{
|
||||
public MainForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.Text = "SingleInstanceDemo";
|
||||
this.Opacity = 0;
|
||||
}
|
||||
|
||||
private bool firstShow = true;
|
||||
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
|
||||
if (firstShow)
|
||||
{
|
||||
this.Visible = false;
|
||||
this.firstShow = false;
|
||||
this.Opacity = 1;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnClosing(CancelEventArgs e)
|
||||
{
|
||||
e.Cancel = true;
|
||||
this.Hide();
|
||||
|
||||
base.OnClosing(e);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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>
|
|
@ -0,0 +1,87 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using System.Diagnostics;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace RadControlsApp
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
private static string requiredString;
|
||||
|
||||
internal static class NativeMethods
|
||||
{
|
||||
[DllImport("user32.dll")]
|
||||
public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern bool SetForegroundWindow(IntPtr hWnd);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern bool EnumWindows(EnumWindowsProcDel lpEnumFunc,
|
||||
Int32 lParam);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern int GetWindowThreadProcessId(IntPtr hWnd,
|
||||
ref Int32 lpdwProcessId);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString,
|
||||
Int32 nMaxCount);
|
||||
|
||||
public const int SW_SHOWNORMAL = 1;
|
||||
}
|
||||
|
||||
public delegate bool EnumWindowsProcDel(IntPtr hWnd, Int32 lParam);
|
||||
|
||||
static private bool EnumWindowsProc(IntPtr hWnd, Int32 lParam)
|
||||
{
|
||||
int processId = 0;
|
||||
NativeMethods.GetWindowThreadProcessId(hWnd, ref processId);
|
||||
|
||||
StringBuilder caption = new StringBuilder(1024);
|
||||
NativeMethods.GetWindowText(hWnd, caption, 1024);
|
||||
|
||||
// Use IndexOf to make sure our required string is in the title.
|
||||
if (processId == lParam && (caption.ToString().IndexOf(requiredString,
|
||||
StringComparison.OrdinalIgnoreCase) != -1))
|
||||
{
|
||||
// Restore the window.
|
||||
NativeMethods.ShowWindowAsync(hWnd, NativeMethods.SW_SHOWNORMAL);
|
||||
NativeMethods.SetForegroundWindow(hWnd);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static public bool IsOnlyProcess(string forceTitle)
|
||||
{
|
||||
requiredString = forceTitle;
|
||||
foreach (Process proc in Process.GetProcessesByName(Application.ProductName))
|
||||
{
|
||||
if (proc.Id != Process.GetCurrentProcess().Id)
|
||||
{
|
||||
NativeMethods.EnumWindows(new EnumWindowsProcDel(EnumWindowsProc),
|
||||
proc.Id);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
if (IsOnlyProcess("SingleInstanceDemo"))
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainForm());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
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("RadControlsApp")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("RadControlsApp")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
|
||||
[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("82e62e21-a23e-4ff5-a7fa-a2793465e06c")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
71
Genral_All_Controls/StartInstantlySample/RadControlsAppCS/RadControlsApp/RadControlsApp/Properties/Resources.Designer.cs
сгенерированный
Normal file
71
Genral_All_Controls/StartInstantlySample/RadControlsAppCS/RadControlsApp/RadControlsApp/Properties/Resources.Designer.cs
сгенерированный
Normal file
|
@ -0,0 +1,71 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4952
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace RadControlsApp.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("RadControlsApp.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
Genral_All_Controls/StartInstantlySample/RadControlsAppCS/RadControlsApp/RadControlsApp/Properties/Settings.Designer.cs
сгенерированный
Normal file
30
Genral_All_Controls/StartInstantlySample/RadControlsAppCS/RadControlsApp/RadControlsApp/Properties/Settings.Designer.cs
сгенерированный
Normal file
|
@ -0,0 +1,30 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4952
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace RadControlsApp.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.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>
|
|
@ -0,0 +1,95 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{58A8CA4E-7F02-487D-8063-A548293A9AF9}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>RadControlsApp</RootNamespace>
|
||||
<AssemblyName>RadControlsApp</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</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.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" />
|
||||
<Reference Include="Telerik.WinControls, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" />
|
||||
<Reference Include="Telerik.WinControls.GridView, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" />
|
||||
<Reference Include="Telerik.WinControls.RadDock, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" />
|
||||
<Reference Include="Telerik.WinControls.UI, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" />
|
||||
<Reference Include="TelerikCommon, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Customer.cs" />
|
||||
<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">
|
||||
<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>
|
||||
<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,3 @@
|
|||
Windows Registry Editor Version 5.00
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
|
||||
"RadControlsApp"="\"C:\\RadControlsApp.exe\""
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "RadControlsApp", "RadControlsApp\RadControlsApp.vbproj", "{73D0E807-55D9-4D9D-8B35-320B479C2A4A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{73D0E807-55D9-4D9D-8B35-320B479C2A4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{73D0E807-55D9-4D9D-8B35-320B479C2A4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{73D0E807-55D9-4D9D-8B35-320B479C2A4A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{73D0E807-55D9-4D9D-8B35-320B479C2A4A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,38 @@
|
|||
Public Class Customer
|
||||
Private id_Renamed As Integer
|
||||
Private name_Renamed As String
|
||||
Private address_Renamed As String
|
||||
|
||||
Public Property Id() As Integer
|
||||
Get
|
||||
Return id_Renamed
|
||||
End Get
|
||||
Set(ByVal value As Integer)
|
||||
id_Renamed = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Public Property Name() As String
|
||||
Get
|
||||
Return name_Renamed
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
name_Renamed = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Public Property Address() As String
|
||||
Get
|
||||
Return address_Renamed
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
address_Renamed = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Public Sub New(ByVal id As Integer, ByVal name As String, ByVal address As String)
|
||||
Me.id_Renamed = id
|
||||
Me.name_Renamed = name
|
||||
Me.address_Renamed = address
|
||||
End Sub
|
||||
End Class
|
176
Genral_All_Controls/StartInstantlySample/RadControlsAppVB/RadControlsAppVB/RadControlsApp/MainForm.designer.vb
сгенерированный
Normal file
176
Genral_All_Controls/StartInstantlySample/RadControlsAppVB/RadControlsAppVB/RadControlsApp/MainForm.designer.vb
сгенерированный
Normal file
|
@ -0,0 +1,176 @@
|
|||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class MainForm
|
||||
Inherits Telerik.WinControls.UI.RadForm
|
||||
|
||||
'Form overrides dispose to clean up the component list.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
Finally
|
||||
MyBase.Dispose(disposing)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Required by the Windows Form Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Windows Form Designer
|
||||
'It can be modified using the Windows Form Designer.
|
||||
'Do not modify it using the code editor.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
Me.radDock1 = New Telerik.WinControls.UI.Docking.RadDock()
|
||||
Me.documentWindow1 = New Telerik.WinControls.UI.Docking.DocumentWindow()
|
||||
Me.toolTabStrip1 = New Telerik.WinControls.UI.Docking.ToolTabStrip()
|
||||
Me.toolWindow1 = New Telerik.WinControls.UI.Docking.ToolWindow()
|
||||
Me.radGridView1 = New Telerik.WinControls.UI.RadGridView()
|
||||
Me.documentContainer1 = New Telerik.WinControls.UI.Docking.DocumentContainer()
|
||||
Me.documentTabStrip1 = New Telerik.WinControls.UI.Docking.DocumentTabStrip()
|
||||
CType(Me.radDock1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.radDock1.SuspendLayout()
|
||||
CType(Me.toolTabStrip1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.toolTabStrip1.SuspendLayout()
|
||||
Me.toolWindow1.SuspendLayout()
|
||||
CType(Me.radGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.radGridView1.MasterTemplate, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.documentContainer1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.documentContainer1.SuspendLayout()
|
||||
CType(Me.documentTabStrip1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.documentTabStrip1.SuspendLayout()
|
||||
CType(Me, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
' radDock1
|
||||
'
|
||||
Me.radDock1.ActiveWindow = Me.toolWindow1
|
||||
Me.radDock1.CausesValidation = False
|
||||
Me.radDock1.Controls.Add(Me.toolTabStrip1)
|
||||
Me.radDock1.Controls.Add(Me.documentContainer1)
|
||||
Me.radDock1.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.radDock1.DocumentManager.DocumentInsertOrder = Telerik.WinControls.UI.Docking.DockWindowInsertOrder.InFront
|
||||
Me.radDock1.IsCleanUpTarget = True
|
||||
Me.radDock1.Location = New System.Drawing.Point(0, 0)
|
||||
Me.radDock1.MainDocumentContainer = Me.documentContainer1
|
||||
Me.radDock1.Name = "radDock1"
|
||||
Me.radDock1.Padding = New System.Windows.Forms.Padding(5)
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.radDock1.RootElement.MinSize = New System.Drawing.Size(25, 25)
|
||||
Me.radDock1.RootElement.Padding = New System.Windows.Forms.Padding(5)
|
||||
Me.radDock1.Size = New System.Drawing.Size(583, 452)
|
||||
Me.radDock1.SplitterWidth = 4
|
||||
Me.radDock1.TabIndex = 0
|
||||
Me.radDock1.TabStop = False
|
||||
Me.radDock1.Text = "radDock1"
|
||||
'
|
||||
' documentWindow1
|
||||
'
|
||||
Me.documentWindow1.Location = New System.Drawing.Point(6, 30)
|
||||
Me.documentWindow1.Name = "documentWindow1"
|
||||
Me.documentWindow1.Size = New System.Drawing.Size(199, 406)
|
||||
Me.documentWindow1.Text = "documentWindow1"
|
||||
'
|
||||
' toolTabStrip1
|
||||
'
|
||||
Me.toolTabStrip1.Controls.Add(Me.toolWindow1)
|
||||
Me.toolTabStrip1.Location = New System.Drawing.Point(5, 5)
|
||||
Me.toolTabStrip1.Name = "toolTabStrip1"
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.toolTabStrip1.RootElement.MinSize = New System.Drawing.Size(25, 25)
|
||||
Me.toolTabStrip1.SelectedIndex = 0
|
||||
Me.toolTabStrip1.Size = New System.Drawing.Size(358, 442)
|
||||
Me.toolTabStrip1.SizeInfo.AbsoluteSize = New System.Drawing.Size(358, 200)
|
||||
Me.toolTabStrip1.SizeInfo.SplitterCorrection = New System.Drawing.Size(158, 0)
|
||||
Me.toolTabStrip1.TabIndex = 1
|
||||
Me.toolTabStrip1.TabStop = False
|
||||
'
|
||||
' toolWindow1
|
||||
'
|
||||
Me.toolWindow1.Controls.Add(Me.radGridView1)
|
||||
Me.toolWindow1.Location = New System.Drawing.Point(1, 24)
|
||||
Me.toolWindow1.Name = "toolWindow1"
|
||||
Me.toolWindow1.Size = New System.Drawing.Size(356, 416)
|
||||
Me.toolWindow1.Text = "toolWindow1"
|
||||
'
|
||||
' radGridView1
|
||||
'
|
||||
Me.radGridView1.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.radGridView1.Location = New System.Drawing.Point(0, 0)
|
||||
Me.radGridView1.Name = "radGridView1"
|
||||
Me.radGridView1.Size = New System.Drawing.Size(356, 416)
|
||||
Me.radGridView1.TabIndex = 0
|
||||
Me.radGridView1.Text = "radGridView1"
|
||||
'
|
||||
' documentContainer1
|
||||
'
|
||||
Me.documentContainer1.CausesValidation = False
|
||||
Me.documentContainer1.Controls.Add(Me.documentTabStrip1)
|
||||
Me.documentContainer1.Location = New System.Drawing.Point(367, 5)
|
||||
Me.documentContainer1.Name = "documentContainer1"
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.documentContainer1.RootElement.MinSize = New System.Drawing.Size(25, 25)
|
||||
Me.documentContainer1.Size = New System.Drawing.Size(211, 442)
|
||||
Me.documentContainer1.SizeInfo.AbsoluteSize = New System.Drawing.Size(211, 200)
|
||||
Me.documentContainer1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Fill
|
||||
Me.documentContainer1.SizeInfo.SplitterCorrection = New System.Drawing.Size(-158, 0)
|
||||
Me.documentContainer1.SplitterWidth = 4
|
||||
Me.documentContainer1.TabIndex = 0
|
||||
Me.documentContainer1.TabStop = False
|
||||
'
|
||||
' documentTabStrip1
|
||||
'
|
||||
Me.documentTabStrip1.CausesValidation = False
|
||||
Me.documentTabStrip1.Controls.Add(Me.documentWindow1)
|
||||
Me.documentTabStrip1.Location = New System.Drawing.Point(0, 0)
|
||||
Me.documentTabStrip1.Name = "documentTabStrip1"
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.documentTabStrip1.RootElement.MinSize = New System.Drawing.Size(25, 25)
|
||||
Me.documentTabStrip1.SelectedIndex = 0
|
||||
Me.documentTabStrip1.Size = New System.Drawing.Size(211, 442)
|
||||
Me.documentTabStrip1.TabIndex = 0
|
||||
Me.documentTabStrip1.TabStop = False
|
||||
'
|
||||
' Form1
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0F, 13.0F)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(583, 452)
|
||||
Me.Controls.Add(Me.radDock1)
|
||||
Me.Name = "Form1"
|
||||
'
|
||||
'
|
||||
'
|
||||
Me.RootElement.ApplyShapeToControl = True
|
||||
CType(Me.radDock1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.radDock1.ResumeLayout(False)
|
||||
CType(Me.toolTabStrip1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.toolTabStrip1.ResumeLayout(False)
|
||||
Me.toolWindow1.ResumeLayout(False)
|
||||
CType(Me.radGridView1.MasterTemplate, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.radGridView1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.documentContainer1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.documentContainer1.ResumeLayout(False)
|
||||
CType(Me.documentTabStrip1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.documentTabStrip1.ResumeLayout(False)
|
||||
CType(Me, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
End Sub
|
||||
|
||||
Private radDock1 As Telerik.WinControls.UI.Docking.RadDock
|
||||
Private documentContainer1 As Telerik.WinControls.UI.Docking.DocumentContainer
|
||||
Private documentWindow1 As Telerik.WinControls.UI.Docking.DocumentWindow
|
||||
Private documentTabStrip1 As Telerik.WinControls.UI.Docking.DocumentTabStrip
|
||||
Private toolTabStrip1 As Telerik.WinControls.UI.Docking.ToolTabStrip
|
||||
Private toolWindow1 As Telerik.WinControls.UI.Docking.ToolWindow
|
||||
Private radGridView1 As Telerik.WinControls.UI.RadGridView
|
||||
End Class
|
|
@ -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>
|
|
@ -0,0 +1,39 @@
|
|||
Imports System.ComponentModel
|
||||
Imports Telerik.WinControls.UI
|
||||
|
||||
Public Class MainForm
|
||||
Dim customers As BindingList(Of Customer) = New BindingList(Of Customer)
|
||||
|
||||
Public Sub New()
|
||||
InitializeComponent()
|
||||
|
||||
Me.Text = "SingleInstanceDemo"
|
||||
Me.Opacity = 0
|
||||
End Sub
|
||||
|
||||
Private firstShow As Boolean = True
|
||||
|
||||
Protected Overrides Sub OnShown(ByVal e As EventArgs)
|
||||
MyBase.OnShown(e)
|
||||
|
||||
If firstShow Then
|
||||
Me.Visible = False
|
||||
Me.firstShow = False
|
||||
Me.Opacity = 1
|
||||
|
||||
For i As Integer = 0 To 99999
|
||||
customers.Add(New Customer(i, "Customer " & i.ToString(), "Address" & i.ToString()))
|
||||
Next i
|
||||
|
||||
Me.radGridView1.DataSource = customers
|
||||
Me.radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub OnClosing(ByVal e As CancelEventArgs)
|
||||
e.Cancel = True
|
||||
Me.Hide()
|
||||
|
||||
MyBase.OnClosing(e)
|
||||
End Sub
|
||||
End Class
|
13
Genral_All_Controls/StartInstantlySample/RadControlsAppVB/RadControlsAppVB/RadControlsApp/My Project/Application.Designer.vb
сгенерированный
Normal file
13
Genral_All_Controls/StartInstantlySample/RadControlsAppVB/RadControlsAppVB/RadControlsApp/My Project/Application.Designer.vb
сгенерированный
Normal file
|
@ -0,0 +1,13 @@
|
|||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:2.0.50727.4952
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<MySubMain>false</MySubMain>
|
||||
<MainForm>Form1</MainForm>
|
||||
<SingleInstance>false</SingleInstance>
|
||||
<ShutdownMode>0</ShutdownMode>
|
||||
<EnableVisualStyles>true</EnableVisualStyles>
|
||||
<AuthenticationMode>0</AuthenticationMode>
|
||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||
</MyApplicationData>
|
|
@ -0,0 +1,35 @@
|
|||
Imports System
|
||||
Imports System.Reflection
|
||||
Imports 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.
|
||||
|
||||
' Review the values of the assembly attributes
|
||||
|
||||
<Assembly: AssemblyTitle("RadControlsApp")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("Microsoft")>
|
||||
<Assembly: AssemblyProduct("RadControlsApp")>
|
||||
<Assembly: AssemblyCopyright("Copyright © Microsoft 2011")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
|
||||
<Assembly: ComVisible(False)>
|
||||
|
||||
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
<Assembly: Guid("3d8dd1cb-3285-4284-b19e-c7ac12af7a1e")>
|
||||
|
||||
' Version information for an assembly consists of the following four values:
|
||||
'
|
||||
' Major Version
|
||||
' Minor Version
|
||||
' Build Number
|
||||
' Revision
|
||||
'
|
||||
' You can specify all the values or you can default the Build and Revision Numbers
|
||||
' by using the '*' as shown below:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("1.0.0.0")>
|
||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
63
Genral_All_Controls/StartInstantlySample/RadControlsAppVB/RadControlsAppVB/RadControlsApp/My Project/Resources.Designer.vb
сгенерированный
Normal file
63
Genral_All_Controls/StartInstantlySample/RadControlsAppVB/RadControlsAppVB/RadControlsApp/My Project/Resources.Designer.vb
сгенерированный
Normal file
|
@ -0,0 +1,63 @@
|
|||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:2.0.50727.4952
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
Imports System
|
||||
|
||||
Namespace My.Resources
|
||||
|
||||
'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.
|
||||
'''<summary>
|
||||
''' A strongly-typed resource class, for looking up localized strings, etc.
|
||||
'''</summary>
|
||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||
Friend Module Resources
|
||||
|
||||
Private resourceMan As Global.System.Resources.ResourceManager
|
||||
|
||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||
|
||||
'''<summary>
|
||||
''' Returns the cached ResourceManager instance used by this class.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||
Get
|
||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("RadControlsApp.Resources", GetType(Resources).Assembly)
|
||||
resourceMan = temp
|
||||
End If
|
||||
Return resourceMan
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<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)> _
|
||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||
Get
|
||||
Return resourceCulture
|
||||
End Get
|
||||
Set
|
||||
resourceCulture = value
|
||||
End Set
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
|
@ -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>
|
73
Genral_All_Controls/StartInstantlySample/RadControlsAppVB/RadControlsAppVB/RadControlsApp/My Project/Settings.Designer.vb
сгенерированный
Normal file
73
Genral_All_Controls/StartInstantlySample/RadControlsAppVB/RadControlsAppVB/RadControlsApp/My Project/Settings.Designer.vb
сгенерированный
Normal file
|
@ -0,0 +1,73 @@
|
|||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:2.0.50727.4952
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0"), _
|
||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Partial Friend NotInheritable Class MySettings
|
||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||
|
||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings),MySettings)
|
||||
|
||||
#Region "My.Settings Auto-Save Functionality"
|
||||
#If _MyType = "WindowsForms" Then
|
||||
Private Shared addedHandler As Boolean
|
||||
|
||||
Private Shared addedHandlerLockObject As New Object
|
||||
|
||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
||||
If My.Application.SaveMySettingsOnExit Then
|
||||
My.Settings.Save()
|
||||
End If
|
||||
End Sub
|
||||
#End If
|
||||
#End Region
|
||||
|
||||
Public Shared ReadOnly Property [Default]() As MySettings
|
||||
Get
|
||||
|
||||
#If _MyType = "WindowsForms" Then
|
||||
If Not addedHandler Then
|
||||
SyncLock addedHandlerLockObject
|
||||
If Not addedHandler Then
|
||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||
addedHandler = True
|
||||
End If
|
||||
End SyncLock
|
||||
End If
|
||||
#End If
|
||||
Return defaultInstance
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||
Friend Module MySettingsProperty
|
||||
|
||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||
Friend ReadOnly Property Settings() As Global.RadControlsApp.My.MySettings
|
||||
Get
|
||||
Return Global.RadControlsApp.My.MySettings.Default
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
|
@ -0,0 +1,69 @@
|
|||
Imports System.Text
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
Friend Class Program
|
||||
Private Shared requiredString As String
|
||||
|
||||
Friend NotInheritable Class NativeMethods
|
||||
<DllImport("user32.dll")> _
|
||||
Public Shared Function ShowWindowAsync(ByVal hWnd As IntPtr, ByVal nCmdShow As Integer) As Boolean
|
||||
End Function
|
||||
|
||||
<DllImport("user32.dll")> _
|
||||
Public Shared Function SetForegroundWindow(ByVal hWnd As IntPtr) As Boolean
|
||||
End Function
|
||||
|
||||
<DllImport("user32.dll")> _
|
||||
Public Shared Function EnumWindows(ByVal lpEnumFunc As EnumWindowsProcDel, ByVal lParam As Int32) As Boolean
|
||||
End Function
|
||||
|
||||
<DllImport("user32.dll")> _
|
||||
Public Shared Function GetWindowThreadProcessId(ByVal hWnd As IntPtr, ByRef lpdwProcessId As Int32) As Integer
|
||||
End Function
|
||||
|
||||
<DllImport("user32.dll")> _
|
||||
Public Shared Function GetWindowText(ByVal hWnd As IntPtr, ByVal lpString As StringBuilder, ByVal nMaxCount As Int32) As Integer
|
||||
End Function
|
||||
|
||||
Public Const SW_SHOWNORMAL As Integer = 1
|
||||
End Class
|
||||
|
||||
Public Delegate Function EnumWindowsProcDel(ByVal hWnd As IntPtr, ByVal lParam As Int32) As Boolean
|
||||
|
||||
Private Shared Function EnumWindowsProc(ByVal hWnd As IntPtr, ByVal lParam As Int32) As Boolean
|
||||
Dim processId As Integer = 0
|
||||
NativeMethods.GetWindowThreadProcessId(hWnd, processId)
|
||||
|
||||
Dim caption As New StringBuilder(1024)
|
||||
NativeMethods.GetWindowText(hWnd, caption, 1024)
|
||||
|
||||
' Use IndexOf to make sure our required string is in the title.
|
||||
If processId = lParam AndAlso (caption.ToString().IndexOf(requiredString, StringComparison.OrdinalIgnoreCase) <> -1) Then
|
||||
' Restore the window.
|
||||
NativeMethods.ShowWindowAsync(hWnd, NativeMethods.SW_SHOWNORMAL)
|
||||
NativeMethods.SetForegroundWindow(hWnd)
|
||||
End If
|
||||
Return True
|
||||
End Function
|
||||
|
||||
Public Shared Function IsOnlyProcess(ByVal forceTitle As String) As Boolean
|
||||
requiredString = forceTitle
|
||||
For Each proc As Process In Process.GetProcessesByName(Application.ProductName)
|
||||
If proc.Id <> Process.GetCurrentProcess().Id Then
|
||||
NativeMethods.EnumWindows(New EnumWindowsProcDel(AddressOf EnumWindowsProc), proc.Id)
|
||||
Return False
|
||||
End If
|
||||
Next proc
|
||||
Return True
|
||||
End Function
|
||||
|
||||
<STAThread()> _
|
||||
Shared Sub Main()
|
||||
If IsOnlyProcess("SingleInstanceDemo") Then
|
||||
Application.EnableVisualStyles()
|
||||
Application.SetCompatibleTextRenderingDefault(False)
|
||||
Application.Run(New MainForm())
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{73D0E807-55D9-4D9D-8B35-320B479C2A4A}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<StartupObject>Sub Main</StartupObject>
|
||||
<RootNamespace>RadControlsApp</RootNamespace>
|
||||
<AssemblyName>RadControlsApp</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<MyType>WindowsFormsWithCustomSubMain</MyType>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
<OptionStrict>Off</OptionStrict>
|
||||
<OptionInfer>On</OptionInfer>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>RadControlsApp.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>RadControlsApp.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</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" />
|
||||
<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="Telerik.WinControls, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL" />
|
||||
<Reference Include="Telerik.WinControls.GridView, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL" />
|
||||
<Reference Include="Telerik.WinControls.RadDock, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL" />
|
||||
<Reference Include="Telerik.WinControls.UI, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL" />
|
||||
<Reference Include="TelerikCommon, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Collections.Generic" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
<Import Include="System.Linq" />
|
||||
<Import Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Customer.vb" />
|
||||
<Compile Include="MainForm.designer.vb">
|
||||
<DependentUpon>MainForm.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainForm.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Resources.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Settings.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<Compile Include="Program.vb" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="MainForm.resx">
|
||||
<DependentUpon>MainForm.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.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,3 @@
|
|||
Windows Registry Editor Version 5.00
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
|
||||
"RadControlsApp"="\"C:\\RadControlsApp.exe\""
|
Загрузка…
Ссылка в новой задаче