Main form localizable, icons for refresh and options, language drop down (english only)

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@499 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-05-27 13:45:25 +00:00
parent 86cb38e994
commit 26a1fcccf9
14 changed files with 480 additions and 226 deletions

View File

@ -60,6 +60,20 @@ namespace webImTray {
}
}
internal static System.Drawing.Bitmap _01_navigate {
get {
object obj = ResourceManager.GetObject("_01_navigate", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap _02_properties {
get {
object obj = ResourceManager.GetObject("_02_properties", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Icon Notify {
get {
object obj = ResourceManager.GetObject("Notify", resourceCulture);

View File

@ -124,4 +124,10 @@
<data name="Notify_offl" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\Notify_offl.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_01_navigate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>toolbarImages\01 navigate.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="_02_properties" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>toolbarImages\02 properties.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

@ -30,6 +30,7 @@ namespace webImTray {
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.optionsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.hideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.notifyMenu.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
@ -37,8 +38,7 @@ namespace webImTray {
// notifyIcon
//
this.notifyIcon.ContextMenuStrip = this.notifyMenu;
this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon")));
this.notifyIcon.Visible = true;
resources.ApplyResources(this.notifyIcon, "notifyIcon");
this.notifyIcon.MouseDown += new System.Windows.Forms.MouseEventHandler(this.notifyIconClick);
//
// notifyMenu
@ -48,35 +48,30 @@ namespace webImTray {
this.toolStripMenuItem1,
this.exitToolStripMenuItem});
this.notifyMenu.Name = "notifyMenu";
this.notifyMenu.Size = new System.Drawing.Size(79, 54);
resources.ApplyResources(this.notifyMenu, "notifyMenu");
//
// optionsToolStripMenuItem
//
this.optionsToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("optionsToolStripMenuItem.Image")));
this.optionsToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Silver;
resources.ApplyResources(this.optionsToolStripMenuItem, "optionsToolStripMenuItem");
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(78, 22);
this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsMenu_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(75, 6);
resources.ApplyResources(this.toolStripMenuItem1, "toolStripMenuItem1");
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(78, 22);
resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem");
this.exitToolStripMenuItem.Click += new System.EventHandler(this.menuExitClick);
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser1.Location = new System.Drawing.Point(0, 24);
resources.ApplyResources(this.webBrowser1, "webBrowser1");
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.Size = new System.Drawing.Size(864, 461);
this.webBrowser1.TabIndex = 2;
this.webBrowser1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.webBrowser1_PreviewKeyDown);
//
// reloadPageTimer
@ -88,34 +83,36 @@ namespace webImTray {
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.refreshToolStripMenuItem,
this.optionsMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.optionsMenuItem,
this.hideToolStripMenuItem});
resources.ApplyResources(this.menuStrip1, "menuStrip1");
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(864, 24);
this.menuStrip1.TabIndex = 3;
this.menuStrip1.Text = "menuStrip1";
//
// refreshToolStripMenuItem
//
this.refreshToolStripMenuItem.Image = global::webImTray.App._01_navigate;
resources.ApplyResources(this.refreshToolStripMenuItem, "refreshToolStripMenuItem");
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
this.refreshToolStripMenuItem.Size = new System.Drawing.Size(57, 20);
this.refreshToolStripMenuItem.Text = "Refresh";
this.refreshToolStripMenuItem.Click += new System.EventHandler(this.refreshToolStripMenuItem_Click);
//
// optionsMenuItem
//
this.optionsMenuItem.Image = global::webImTray.App._02_properties;
resources.ApplyResources(this.optionsMenuItem, "optionsMenuItem");
this.optionsMenuItem.Name = "optionsMenuItem";
this.optionsMenuItem.Size = new System.Drawing.Size(56, 20);
this.optionsMenuItem.Text = "Options";
this.optionsMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem1_Click);
//
// hideToolStripMenuItem
//
this.hideToolStripMenuItem.Name = "hideToolStripMenuItem";
resources.ApplyResources(this.hideToolStripMenuItem, "hideToolStripMenuItem");
this.hideToolStripMenuItem.Click += new System.EventHandler(this.hideApp);
//
// MainWindow
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(864, 485);
resources.ApplyResources(this, "$this");
this.Controls.Add(this.webBrowser1);
this.Controls.Add(this.menuStrip1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1;
this.Name = "MainWindow";
this.ShowInTaskbar = false;
@ -123,12 +120,6 @@ namespace webImTray {
this.GotFocus += new System.EventHandler(this.gotFocus);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Client_FormClosing);
this.Resize += new System.EventHandler(this.FormResize);
this.optionsMenuItem.Text = "Options";
this.refreshToolStripMenuItem.Text = "Refresh";
this.optionsToolStripMenuItem.Text = "Options..";
this.exitToolStripMenuItem.Text = "Exit";
this.notifyMenu.ResumeLayout(false);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
@ -147,6 +138,7 @@ namespace webImTray {
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem refreshToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem optionsMenuItem;
private System.Windows.Forms.ToolStripMenuItem hideToolStripMenuItem;
}
}

View File

@ -202,5 +202,10 @@ namespace webImTray {
hideWindow();
}
}
private void hideApp(object sender, EventArgs e)
{
hideWindow();
}
}
}

View File

@ -118,20 +118,20 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="notifyIcon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>135, 12</value>
<value>134, 99</value>
</metadata>
<metadata name="notifyMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>259, 20</value>
<value>245, 102</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="optionsToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAIVJREFUOE/dk0EO
gCAMBPlgv+l/DBcTH4O2WrLCFi56kaQJgXbYbUNKXy4RKSz2bT3PF4vwfS3MOdO4oAOAF48hN4BJ1Jdn
kKpAE321RRHkYcEBmKxABnO12rhOgV9WOQ3Eodh1mwJawGK0hftubDNAqygEoAU2GWbBYD9REH0adv76
5z0AIQLwRor4ZGsAAAAASUVORK5CYII=
</value>
<data name="notifyMenu.Size" type="System.Drawing.Size, System.Drawing">
<value>131, 54</value>
</data>
<data name="&gt;&gt;notifyMenu.Name" xml:space="preserve">
<value>notifyMenu</value>
</data>
<data name="&gt;&gt;notifyMenu.Type" xml:space="preserve">
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="notifyIcon.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
@ -161,15 +161,134 @@
AADghwAA4IcAAOCHAADxjwAA//8AAP//AAA=
</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="notifyIcon.Visible" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="optionsToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAIVJREFUOE/dk0EO
gCAMBPlgv+l/DBcTH4O2WrLCFi56kaQJgXbYbUNKXy4RKSz2bT3PF4vwfS3MOdO4oAOAF48hN4BJ1Jdn
kKpAE321RRHkYcEBmKxABnO12rhOgV9WOQ3Eodh1mwJawGK0hftubDNAqygEoAU2GWbBYD9REH0adv76
5z0AIQLwRor4ZGsAAAAASUVORK5CYII=
</value>
</data>
<data name="optionsToolStripMenuItem.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
<value>Silver</value>
</data>
<data name="optionsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>130, 22</value>
</data>
<data name="optionsToolStripMenuItem.Text" xml:space="preserve">
<value>Options..</value>
</data>
<data name="toolStripMenuItem1.Size" type="System.Drawing.Size, System.Drawing">
<value>127, 6</value>
</data>
<data name="exitToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>130, 22</value>
</data>
<data name="exitToolStripMenuItem.Text" xml:space="preserve">
<value>Exit</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="webBrowser1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="webBrowser1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 24</value>
</data>
<data name="webBrowser1.Size" type="System.Drawing.Size, System.Drawing">
<value>864, 461</value>
</data>
<data name="webBrowser1.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="&gt;&gt;webBrowser1.Name" xml:space="preserve">
<value>webBrowser1</value>
</data>
<data name="&gt;&gt;webBrowser1.Type" xml:space="preserve">
<value>System.Windows.Forms.WebBrowser, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;webBrowser1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;webBrowser1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<metadata name="reloadPageTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>544, 11</value>
<value>384, 102</value>
</metadata>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 48</value>
<value>0, 0</value>
</metadata>
<data name="refreshToolStripMenuItem.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
<value>Silver</value>
</data>
<data name="refreshToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>73, 20</value>
</data>
<data name="refreshToolStripMenuItem.Text" xml:space="preserve">
<value>Refresh</value>
</data>
<data name="optionsMenuItem.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
<value>Black</value>
</data>
<data name="optionsMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>72, 20</value>
</data>
<data name="optionsMenuItem.Text" xml:space="preserve">
<value>Options</value>
</data>
<data name="hideToolStripMenuItem.ShortcutKeyDisplayString" xml:space="preserve">
<value>Esc</value>
</data>
<data name="hideToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>40, 20</value>
</data>
<data name="hideToolStripMenuItem.Text" xml:space="preserve">
<value>Hide</value>
</data>
<data name="hideToolStripMenuItem.ToolTipText" xml:space="preserve">
<value>Hides application into tray</value>
</data>
<data name="menuStrip1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="menuStrip1.Size" type="System.Drawing.Size, System.Drawing">
<value>864, 24</value>
</data>
<data name="menuStrip1.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="menuStrip1.Text" xml:space="preserve">
<value>menuStrip1</value>
</data>
<data name="&gt;&gt;menuStrip1.Name" xml:space="preserve">
<value>menuStrip1</value>
</data>
<data name="&gt;&gt;menuStrip1.Type" xml:space="preserve">
<value>System.Windows.Forms.MenuStrip, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;menuStrip1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;menuStrip1.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>173</value>
</metadata>
<data name="$this.AutoScaleBaseSize" type="System.Drawing.Size, System.Drawing">
<value>5, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>864, 485</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@ -189,4 +308,58 @@
AACAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAA//8AAP//AAD//wAA
</value>
</data>
<data name="&gt;&gt;notifyIcon.Name" xml:space="preserve">
<value>notifyIcon</value>
</data>
<data name="&gt;&gt;notifyIcon.Type" xml:space="preserve">
<value>System.Windows.Forms.NotifyIcon, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;optionsToolStripMenuItem.Name" xml:space="preserve">
<value>optionsToolStripMenuItem</value>
</data>
<data name="&gt;&gt;optionsToolStripMenuItem.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;toolStripMenuItem1.Name" xml:space="preserve">
<value>toolStripMenuItem1</value>
</data>
<data name="&gt;&gt;toolStripMenuItem1.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;exitToolStripMenuItem.Name" xml:space="preserve">
<value>exitToolStripMenuItem</value>
</data>
<data name="&gt;&gt;exitToolStripMenuItem.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;reloadPageTimer.Name" xml:space="preserve">
<value>reloadPageTimer</value>
</data>
<data name="&gt;&gt;reloadPageTimer.Type" xml:space="preserve">
<value>System.Windows.Forms.Timer, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;refreshToolStripMenuItem.Name" xml:space="preserve">
<value>refreshToolStripMenuItem</value>
</data>
<data name="&gt;&gt;refreshToolStripMenuItem.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;optionsMenuItem.Name" xml:space="preserve">
<value>optionsMenuItem</value>
</data>
<data name="&gt;&gt;optionsMenuItem.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;hideToolStripMenuItem.Name" xml:space="preserve">
<value>hideToolStripMenuItem</value>
</data>
<data name="&gt;&gt;hideToolStripMenuItem.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>MainWindow</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>webImTray.LockNotificationForm, webImTray, Version=1.0.4.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>

View File

@ -1,77 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 1.3
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">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET Framework object]
</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.
-->
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" msdata:Ordinal="1" />
<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">
@ -90,12 +109,12 @@
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>1.3</value>
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<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.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -36,8 +36,7 @@ namespace webImTray {
this.showOptions = new System.Windows.Forms.CheckBox();
this.showHide = new System.Windows.Forms.CheckBox();
this.languageBox = new System.Windows.Forms.GroupBox();
this.radioRussian = new System.Windows.Forms.RadioButton();
this.radioEnglish = new System.Windows.Forms.RadioButton();
this.languageSelector = new System.Windows.Forms.ComboBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.languageBox.SuspendLayout();
@ -109,27 +108,17 @@ namespace webImTray {
//
// languageBox
//
this.languageBox.Controls.Add(this.radioRussian);
this.languageBox.Controls.Add(this.radioEnglish);
this.languageBox.Controls.Add(this.languageSelector);
resources.ApplyResources(this.languageBox, "languageBox");
this.languageBox.Name = "languageBox";
this.languageBox.TabStop = false;
//
// radioRussian
// languageSelector
//
resources.ApplyResources(this.radioRussian, "radioRussian");
this.radioRussian.Checked = true;
this.radioRussian.Name = "radioRussian";
this.radioRussian.TabStop = true;
this.radioRussian.UseVisualStyleBackColor = true;
this.radioRussian.CheckedChanged += new System.EventHandler(this.radioRussian_CheckedChanged);
//
// radioEnglish
//
resources.ApplyResources(this.radioEnglish, "radioEnglish");
this.radioEnglish.Name = "radioEnglish";
this.radioEnglish.UseVisualStyleBackColor = true;
this.radioEnglish.CheckedChanged += new System.EventHandler(this.radioEnglish_CheckedChanged);
this.languageSelector.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
resources.ApplyResources(this.languageSelector, "languageSelector");
this.languageSelector.FormattingEnabled = true;
this.languageSelector.Name = "languageSelector";
//
// OptionsGeneralPanel
//
@ -144,7 +133,6 @@ namespace webImTray {
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.languageBox.ResumeLayout(false);
this.languageBox.PerformLayout();
this.ResumeLayout(false);
}
@ -161,7 +149,6 @@ namespace webImTray {
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.GroupBox languageBox;
private System.Windows.Forms.RadioButton radioRussian;
private System.Windows.Forms.RadioButton radioEnglish;
private System.Windows.Forms.ComboBox languageSelector;
}
}

View File

@ -47,7 +47,8 @@ namespace webImTray {
hideWhenStarted.Checked = Options.HideAfterStart;
// Restore previously set locale
// TODO
languageSelector.Items.Add("English");
languageSelector.SelectedIndex = 0;
// Update UI according to the current locale
OptionsDialog.updateUI();

View File

@ -117,11 +117,78 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="&gt;&gt;hideWhenStarted.Name" xml:space="preserve">
<value>hideWhenStarted</value>
</data>
<data name="&gt;&gt;hideWhenStarted.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;hideWhenStarted.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;hideWhenStarted.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="&gt;&gt;autoStart.Name" xml:space="preserve">
<value>autoStart</value>
</data>
<data name="&gt;&gt;autoStart.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;autoStart.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;autoStart.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;showInTaskBar.Name" xml:space="preserve">
<value>showInTaskBar</value>
</data>
<data name="&gt;&gt;showInTaskBar.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;showInTaskBar.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;showInTaskBar.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="groupBox1.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt, style=Bold</value>
</data>
<data name="groupBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="groupBox1.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>12, 12, 12, 12</value>
</data>
<data name="groupBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>368, 106</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="groupBox1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="groupBox1.Text" xml:space="preserve">
<value>Application</value>
</data>
<data name="&gt;&gt;groupBox1.Name" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;groupBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;groupBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;groupBox1.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="hideWhenStarted.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="hideWhenStarted.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
@ -209,36 +276,83 @@
<data name="&gt;&gt;showInTaskBar.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="groupBox1.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt, style=Bold</value>
<data name="&gt;&gt;textBox2.Name" xml:space="preserve">
<value>textBox2</value>
</data>
<data name="groupBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
<data name="&gt;&gt;textBox2.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="groupBox1.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>12, 12, 12, 12</value>
<data name="&gt;&gt;textBox2.Parent" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="groupBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>368, 106</value>
</data>
<data name="groupBox1.TabIndex" type="System.Int32, mscorlib">
<data name="&gt;&gt;textBox2.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="groupBox1.Text" xml:space="preserve">
<value>Application</value>
<data name="&gt;&gt;textBox1.Name" xml:space="preserve">
<value>textBox1</value>
</data>
<data name="&gt;&gt;groupBox1.Name" xml:space="preserve">
<value>groupBox1</value>
<data name="&gt;&gt;textBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;groupBox1.Type" xml:space="preserve">
<data name="&gt;&gt;textBox1.Parent" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="&gt;&gt;textBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;showOptions.Name" xml:space="preserve">
<value>showOptions</value>
</data>
<data name="&gt;&gt;showOptions.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;showOptions.Parent" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="&gt;&gt;showOptions.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="&gt;&gt;showHide.Name" xml:space="preserve">
<value>showHide</value>
</data>
<data name="&gt;&gt;showHide.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;showHide.Parent" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="&gt;&gt;showHide.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="groupBox2.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt, style=Bold</value>
</data>
<data name="groupBox2.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 115</value>
</data>
<data name="groupBox2.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>12, 12, 12, 12</value>
</data>
<data name="groupBox2.Size" type="System.Drawing.Size, System.Drawing">
<value>368, 89</value>
</data>
<data name="groupBox2.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="groupBox2.Text" xml:space="preserve">
<value>Hotkeys</value>
</data>
<data name="&gt;&gt;groupBox2.Name" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="&gt;&gt;groupBox2.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;groupBox1.Parent" xml:space="preserve">
<data name="&gt;&gt;groupBox2.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;groupBox1.ZOrder" xml:space="preserve">
<value>2</value>
<data name="&gt;&gt;groupBox2.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="textBox2.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
@ -360,95 +474,29 @@
<data name="&gt;&gt;showHide.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="groupBox2.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt, style=Bold</value>
<data name="languageSelector.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt</value>
</data>
<data name="groupBox2.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 115</value>
<data name="languageSelector.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 32</value>
</data>
<data name="groupBox2.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>12, 12, 12, 12</value>
<data name="languageSelector.Size" type="System.Drawing.Size, System.Drawing">
<value>209, 24</value>
</data>
<data name="groupBox2.Size" type="System.Drawing.Size, System.Drawing">
<value>368, 89</value>
</data>
<data name="groupBox2.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="groupBox2.Text" xml:space="preserve">
<value>Hotkeys</value>
</data>
<data name="&gt;&gt;groupBox2.Name" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="&gt;&gt;groupBox2.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;groupBox2.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;groupBox2.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="radioRussian.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="radioRussian.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="radioRussian.Location" type="System.Drawing.Point, System.Drawing">
<value>101, 30</value>
</data>
<data name="radioRussian.Size" type="System.Drawing.Size, System.Drawing">
<value>63, 17</value>
</data>
<data name="radioRussian.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="radioRussian.Text" xml:space="preserve">
<value>Russian</value>
</data>
<data name="&gt;&gt;radioRussian.Name" xml:space="preserve">
<value>radioRussian</value>
</data>
<data name="&gt;&gt;radioRussian.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;radioRussian.Parent" xml:space="preserve">
<value>languageBox</value>
</data>
<data name="&gt;&gt;radioRussian.ZOrder" xml:space="preserve">
<data name="languageSelector.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="radioEnglish.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
<data name="&gt;&gt;languageSelector.Name" xml:space="preserve">
<value>languageSelector</value>
</data>
<data name="radioEnglish.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
<data name="&gt;&gt;languageSelector.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="radioEnglish.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 30</value>
</data>
<data name="radioEnglish.Size" type="System.Drawing.Size, System.Drawing">
<value>59, 17</value>
</data>
<data name="radioEnglish.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="radioEnglish.Text" xml:space="preserve">
<value>English</value>
</data>
<data name="&gt;&gt;radioEnglish.Name" xml:space="preserve">
<value>radioEnglish</value>
</data>
<data name="&gt;&gt;radioEnglish.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;radioEnglish.Parent" xml:space="preserve">
<data name="&gt;&gt;languageSelector.Parent" xml:space="preserve">
<value>languageBox</value>
</data>
<data name="&gt;&gt;radioEnglish.ZOrder" xml:space="preserve">
<value>1</value>
<data name="&gt;&gt;languageSelector.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="languageBox.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt, style=Bold</value>
@ -457,7 +505,7 @@
<value>3, 210</value>
</data>
<data name="languageBox.Size" type="System.Drawing.Size, System.Drawing">
<value>371, 53</value>
<value>371, 72</value>
</data>
<data name="languageBox.TabIndex" type="System.Int32, mscorlib">
<value>2</value>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

View File

@ -27,6 +27,7 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
@ -79,6 +80,9 @@
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
@ -96,6 +100,11 @@
<Content Include="icons\App.ico" />
<Content Include="icons\Notify.ico" />
<Content Include="icons\Notify_offl.ico" />
<None Include="toolbarImages\02 properties.bmp" />
<None Include="icons\Options.bmp" />
<None Include="icons\Options.ico" />
<None Include="toolbarImages\03 properties.bmp" />
<None Include="toolbarImages\01 navigate.bmp" />
<Compile Include="App.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>