Sicherung

This commit is contained in:
Maier Stephan SI
2023-04-17 07:07:49 +02:00
parent f3f89b94f5
commit 1c68b8f401
1307 changed files with 7918 additions and 82491 deletions

View File

@@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{833625E6-80AC-45E0-8AA4-06BDDEDBEA2F}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DemoApp</RootNamespace>
<AssemblyName>DemoApp</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<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|x86' ">
<PlatformTarget>x86</PlatformTarget>
<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" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<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="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.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>
<DesignTime>True</DesignTime>
</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>
<None Include="Resources\157_GetPermission_48x48_72.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Tulpep.NotificationWindow\Tulpep.NotificationWindow.csproj">
<Project>{605006eb-d4e6-4312-a293-3a43fac43240}</Project>
<Name>Tulpep.NotificationWindow</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,405 @@
namespace DemoApp
{
partial class Form1
{
/// <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.components = new System.ComponentModel.Container();
this.btnExit = new System.Windows.Forms.Button();
this.btnShow = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtTitle = new System.Windows.Forms.TextBox();
this.txtText = new System.Windows.Forms.TextBox();
this.chkIcon = new System.Windows.Forms.CheckBox();
this.chkClose = new System.Windows.Forms.CheckBox();
this.chkMenu = new System.Windows.Forms.CheckBox();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.txtDelay = new System.Windows.Forms.TextBox();
this.txtInterval = new System.Windows.Forms.TextBox();
this.chkGrip = new System.Windows.Forms.CheckBox();
this.label5 = new System.Windows.Forms.Label();
this.txtPaddingIcon = new System.Windows.Forms.TextBox();
this.chkScroll = new System.Windows.Forms.CheckBox();
this.txtPaddingContent = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.txtPaddingTitle = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.label8 = new System.Windows.Forms.Label();
this.txtAnimationDuration = new System.Windows.Forms.TextBox();
this.popupNotifier1 = new Tulpep.NotificationWindow.PopupNotifier();
this.chkIsRightToLeft = new System.Windows.Forms.CheckBox();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
//
// btnExit
//
this.btnExit.Location = new System.Drawing.Point(425, 12);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(75, 23);
this.btnExit.TabIndex = 0;
this.btnExit.Text = "Exit";
this.btnExit.UseVisualStyleBackColor = true;
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
//
// btnShow
//
this.btnShow.Location = new System.Drawing.Point(12, 222);
this.btnShow.Name = "btnShow";
this.btnShow.Size = new System.Drawing.Size(75, 23);
this.btnShow.TabIndex = 1;
this.btnShow.Text = "Show!";
this.btnShow.UseVisualStyleBackColor = true;
this.btnShow.Click += new System.EventHandler(this.btnShow_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 17);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(31, 13);
this.label1.TabIndex = 2;
this.label1.Text = "Title:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 43);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(33, 13);
this.label2.TabIndex = 3;
this.label2.Text = "Text:";
//
// txtTitle
//
this.txtTitle.Location = new System.Drawing.Point(48, 14);
this.txtTitle.Name = "txtTitle";
this.txtTitle.Size = new System.Drawing.Size(372, 21);
this.txtTitle.TabIndex = 4;
this.txtTitle.Text = "Notification Title";
//
// txtText
//
this.txtText.Location = new System.Drawing.Point(49, 40);
this.txtText.Name = "txtText";
this.txtText.Size = new System.Drawing.Size(371, 21);
this.txtText.TabIndex = 5;
this.txtText.Text = "This is the notification text!";
//
// chkIcon
//
this.chkIcon.AutoSize = true;
this.chkIcon.Checked = true;
this.chkIcon.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkIcon.Location = new System.Drawing.Point(15, 75);
this.chkIcon.Name = "chkIcon";
this.chkIcon.Size = new System.Drawing.Size(74, 17);
this.chkIcon.TabIndex = 6;
this.chkIcon.Text = "Show icon";
this.chkIcon.UseVisualStyleBackColor = true;
//
// chkClose
//
this.chkClose.AutoSize = true;
this.chkClose.Checked = true;
this.chkClose.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkClose.Location = new System.Drawing.Point(15, 98);
this.chkClose.Name = "chkClose";
this.chkClose.Size = new System.Drawing.Size(114, 17);
this.chkClose.TabIndex = 7;
this.chkClose.Text = "Show close button";
this.chkClose.UseVisualStyleBackColor = true;
//
// chkMenu
//
this.chkMenu.AutoSize = true;
this.chkMenu.Checked = true;
this.chkMenu.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkMenu.Location = new System.Drawing.Point(15, 121);
this.chkMenu.Name = "chkMenu";
this.chkMenu.Size = new System.Drawing.Size(114, 17);
this.chkMenu.TabIndex = 8;
this.chkMenu.Text = "Show option menu";
this.chkMenu.UseVisualStyleBackColor = true;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(199, 76);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(62, 13);
this.label4.TabIndex = 9;
this.label4.Text = "Delay [ms]:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(199, 99);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(121, 13);
this.label3.TabIndex = 10;
this.label3.Text = "Animation interval [ms]:";
//
// txtDelay
//
this.txtDelay.Location = new System.Drawing.Point(320, 70);
this.txtDelay.Name = "txtDelay";
this.txtDelay.Size = new System.Drawing.Size(100, 21);
this.txtDelay.TabIndex = 11;
this.txtDelay.Text = "3000";
//
// txtInterval
//
this.txtInterval.Location = new System.Drawing.Point(320, 96);
this.txtInterval.Name = "txtInterval";
this.txtInterval.Size = new System.Drawing.Size(100, 21);
this.txtInterval.TabIndex = 12;
this.txtInterval.Text = "10";
//
// chkGrip
//
this.chkGrip.AutoSize = true;
this.chkGrip.Checked = true;
this.chkGrip.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkGrip.Location = new System.Drawing.Point(15, 144);
this.chkGrip.Name = "chkGrip";
this.chkGrip.Size = new System.Drawing.Size(73, 17);
this.chkGrip.TabIndex = 13;
this.chkGrip.Text = "Show grip";
this.chkGrip.UseVisualStyleBackColor = true;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(199, 151);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(95, 13);
this.label5.TabIndex = 14;
this.label5.Text = "Title padding [px]:";
//
// txtPaddingIcon
//
this.txtPaddingIcon.Location = new System.Drawing.Point(320, 200);
this.txtPaddingIcon.Name = "txtPaddingIcon";
this.txtPaddingIcon.Size = new System.Drawing.Size(100, 21);
this.txtPaddingIcon.TabIndex = 15;
this.txtPaddingIcon.Text = "0";
//
// chkScroll
//
this.chkScroll.AutoSize = true;
this.chkScroll.Checked = true;
this.chkScroll.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkScroll.Location = new System.Drawing.Point(15, 167);
this.chkScroll.Name = "chkScroll";
this.chkScroll.Size = new System.Drawing.Size(82, 17);
this.chkScroll.TabIndex = 16;
this.chkScroll.Text = "Scroll in/out";
this.chkScroll.UseVisualStyleBackColor = true;
//
// txtPaddingContent
//
this.txtPaddingContent.Location = new System.Drawing.Point(320, 174);
this.txtPaddingContent.Name = "txtPaddingContent";
this.txtPaddingContent.Size = new System.Drawing.Size(100, 21);
this.txtPaddingContent.TabIndex = 17;
this.txtPaddingContent.Text = "0";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(199, 203);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(96, 13);
this.label6.TabIndex = 18;
this.label6.Text = "Icon padding [px]:";
//
// txtPaddingTitle
//
this.txtPaddingTitle.Location = new System.Drawing.Point(320, 148);
this.txtPaddingTitle.Name = "txtPaddingTitle";
this.txtPaddingTitle.Size = new System.Drawing.Size(100, 21);
this.txtPaddingTitle.TabIndex = 19;
this.txtPaddingTitle.Text = "0";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(199, 177);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(114, 13);
this.label7.TabIndex = 20;
this.label7.Text = "Content padding [px]:";
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.aboutToolStripMenuItem,
this.settingsToolStripMenuItem,
this.exitToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(126, 70);
//
// aboutToolStripMenuItem
//
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
this.aboutToolStripMenuItem.Text = "About...";
//
// settingsToolStripMenuItem
//
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
this.settingsToolStripMenuItem.Text = "Settings...";
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
this.exitToolStripMenuItem.Text = "Exit";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(199, 125);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(123, 13);
this.label8.TabIndex = 21;
this.label8.Text = "AnimationDuration [ms]:";
//
// txtAnimationDuration
//
this.txtAnimationDuration.Location = new System.Drawing.Point(320, 122);
this.txtAnimationDuration.Name = "txtAnimationDuration";
this.txtAnimationDuration.Size = new System.Drawing.Size(100, 21);
this.txtAnimationDuration.TabIndex = 22;
this.txtAnimationDuration.Text = "1000";
//
// popupNotifier1
//
this.popupNotifier1.BodyColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
this.popupNotifier1.ContentFont = new System.Drawing.Font("Tahoma", 8F);
this.popupNotifier1.ContentText = null;
this.popupNotifier1.GradientPower = 300;
this.popupNotifier1.HeaderHeight = 20;
this.popupNotifier1.Image = null;
this.popupNotifier1.IsRightToLeft = false;
this.popupNotifier1.OptionsMenu = this.contextMenuStrip1;
this.popupNotifier1.Size = new System.Drawing.Size(400, 100);
this.popupNotifier1.TitleFont = new System.Drawing.Font("Segoe UI", 9F);
this.popupNotifier1.TitleText = null;
//
// chkIsRightToLeft
//
this.chkIsRightToLeft.AutoSize = true;
this.chkIsRightToLeft.Location = new System.Drawing.Point(12, 190);
this.chkIsRightToLeft.Name = "chkIsRightToLeft";
this.chkIsRightToLeft.Size = new System.Drawing.Size(153, 17);
this.chkIsRightToLeft.TabIndex = 23;
this.chkIsRightToLeft.Text = "Right to Left/ راست به چپ";
this.chkIsRightToLeft.UseVisualStyleBackColor = true;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(512, 257);
this.Controls.Add(this.chkIsRightToLeft);
this.Controls.Add(this.txtPaddingTitle);
this.Controls.Add(this.label7);
this.Controls.Add(this.txtAnimationDuration);
this.Controls.Add(this.label8);
this.Controls.Add(this.chkScroll);
this.Controls.Add(this.txtPaddingContent);
this.Controls.Add(this.txtPaddingIcon);
this.Controls.Add(this.label6);
this.Controls.Add(this.chkGrip);
this.Controls.Add(this.label5);
this.Controls.Add(this.txtDelay);
this.Controls.Add(this.label3);
this.Controls.Add(this.txtInterval);
this.Controls.Add(this.label4);
this.Controls.Add(this.chkMenu);
this.Controls.Add(this.chkClose);
this.Controls.Add(this.chkIcon);
this.Controls.Add(this.txtText);
this.Controls.Add(this.txtTitle);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.btnShow);
this.Controls.Add(this.btnExit);
this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.Text = "NotificationWindow Demo";
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.Button btnShow;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtTitle;
private System.Windows.Forms.TextBox txtText;
private System.Windows.Forms.CheckBox chkIcon;
private System.Windows.Forms.CheckBox chkClose;
private System.Windows.Forms.CheckBox chkMenu;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtDelay;
private System.Windows.Forms.TextBox txtInterval;
private System.Windows.Forms.CheckBox chkGrip;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox txtPaddingIcon;
private System.Windows.Forms.CheckBox chkScroll;
private System.Windows.Forms.TextBox txtPaddingContent;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox txtPaddingTitle;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox txtAnimationDuration;
private Tulpep.NotificationWindow.PopupNotifier popupNotifier1;
private System.Windows.Forms.CheckBox chkIsRightToLeft;
}
}

View File

@@ -0,0 +1,53 @@
/*
* Created/modified in 2011 by Simon Baer
*
* Licensed under the Code Project Open License (CPOL).
*/
using System;
using System.Drawing;
using System.Windows.Forms;
namespace DemoApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnShow_Click(object sender, EventArgs e)
{
popupNotifier1.TitleText = txtTitle.Text;
popupNotifier1.ContentText = txtText.Text;
popupNotifier1.ShowCloseButton = chkClose.Checked;
popupNotifier1.ShowOptionsButton = chkMenu.Checked;
popupNotifier1.ShowGrip = chkGrip.Checked;
popupNotifier1.Delay = int.Parse(txtDelay.Text);
popupNotifier1.AnimationInterval = int.Parse(txtInterval.Text);
popupNotifier1.AnimationDuration = int.Parse(txtAnimationDuration.Text);
popupNotifier1.TitlePadding = new Padding(int.Parse(txtPaddingTitle.Text));
popupNotifier1.ContentPadding = new Padding(int.Parse(txtPaddingContent.Text));
popupNotifier1.ImagePadding = new Padding(int.Parse(txtPaddingIcon.Text));
popupNotifier1.Scroll = chkScroll.Checked;
popupNotifier1.IsRightToLeft = chkIsRightToLeft.Checked;
if (chkIcon.Checked)
{
popupNotifier1.Image = Properties.Resources._157_GetPermission_48x48_72;
}
else
{
popupNotifier1.Image = null;
}
popupNotifier1.Popup();
}
private void btnExit_Click(object sender, EventArgs e)
{
this.Close();
Application.Exit();
}
}
}

View File

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

View File

@@ -0,0 +1,25 @@
/*
* Created/modified in 2011 by Simon Baer
*
* Licensed under the Code Project Open License (CPOL).
*/
using System;
using System.Windows.Forms;
namespace DemoApp
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@@ -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("DemoApp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DemoApp")]
[assembly: AssemblyCopyright("Copyright © 2011 by Simon B.")]
[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("fe6db5c0-7cd9-4100-aa8c-12d84b9d8417")]
// 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")]

View File

@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.235
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DemoApp.Properties {
using System;
/// <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", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 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 (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DemoApp.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;
}
}
internal static System.Drawing.Bitmap _157_GetPermission_48x48_72 {
get {
object obj = ResourceManager.GetObject("_157_GetPermission_48x48_72", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

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

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.235
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DemoApp.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB