refactor localization mechanism, remove ru, update copyrights and links, use VS.2008

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@498 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-05-27 11:46:52 +00:00
parent 4218119669
commit 86cb38e994
24 changed files with 1291 additions and 834 deletions

View File

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.832 // Runtime Version:2.0.50727.1433
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.

View File

@ -123,6 +123,12 @@ namespace webImTray {
this.GotFocus += new System.EventHandler(this.gotFocus); this.GotFocus += new System.EventHandler(this.gotFocus);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Client_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Client_FormClosing);
this.Resize += new System.EventHandler(this.FormResize); 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.notifyMenu.ResumeLayout(false);
this.menuStrip1.ResumeLayout(false); this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout(); this.menuStrip1.PerformLayout();

View File

@ -38,21 +38,7 @@ namespace webImTray {
setupReloadTimer(); setupReloadTimer();
// Restore previously set locale // Restore previously set locale
if (!Options.RussianLocale) { // TODO Thread.CurrentThread.CurrentUICulture =
Thread.CurrentThread.CurrentUICulture = Options.englishCulture;
} else {
Thread.CurrentThread.CurrentUICulture = Options.russianCulture;
}
// Update localized controls
updateLocalizedControls();
}
private void updateLocalizedControls() {
// Update localized controls
optionsMenuItem.Text = Options.resourceManager.GetString("optionsMenuItem");
refreshToolStripMenuItem.Text = Options.resourceManager.GetString("refreshMenuItem");
optionsToolStripMenuItem.Text = Options.resourceManager.GetString("trayOptions");
exitToolStripMenuItem.Text = Options.resourceManager.GetString("trayExit");
} }
void navigateThere() { void navigateThere() {
@ -105,7 +91,7 @@ namespace webImTray {
void webBrowser1_DocumentTitleChanged(object sender, EventArgs e) { void webBrowser1_DocumentTitleChanged(object sender, EventArgs e) {
string s = webBrowser1.DocumentTitle; string s = webBrowser1.DocumentTitle;
if (s == null || s.Length == 0) { if (s == null || s.Length == 0) {
s = "Web Messenger [loading]"; s = "Mibew Messenger [loading]";
this.notifyIcon.Icon = App.Notify_offl; this.notifyIcon.Icon = App.Notify_offl;
} else { } else {
this.notifyIcon.Icon = App.Notify; this.notifyIcon.Icon = App.Notify;
@ -115,8 +101,8 @@ namespace webImTray {
private void Client_FormClosing(object sender, FormClosingEventArgs e) { private void Client_FormClosing(object sender, FormClosingEventArgs e) {
if( !forceClosing && e.CloseReason == CloseReason.UserClosing if( !forceClosing && e.CloseReason == CloseReason.UserClosing
&& MessageBox.Show(this, Options.resourceManager.GetString("exitConfirmation"), && MessageBox.Show(this, "Do you want to quit?",
Options.resourceManager.GetString("webMessenger"), "Mibew Messenger",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) {
e.Cancel = true; e.Cancel = true;
} }
@ -136,9 +122,6 @@ namespace webImTray {
if (Options.ShowInTaskBar != this.ShowInTaskbar) if (Options.ShowInTaskBar != this.ShowInTaskbar)
this.ShowInTaskbar = !this.ShowInTaskbar; this.ShowInTaskbar = !this.ShowInTaskbar;
// Update localized controls
updateLocalizedControls();
setupReloadTimer(); setupReloadTimer();
} }
@ -203,11 +186,7 @@ namespace webImTray {
this.ShowInTaskbar = !this.ShowInTaskbar; this.ShowInTaskbar = !this.ShowInTaskbar;
} }
// Update localized controls
updateLocalizedControls();
setupReloadTimer(); setupReloadTimer();
} }
private void refreshToolStripMenuItem_Click(object sender, EventArgs e) { private void refreshToolStripMenuItem_Click(object sender, EventArgs e) {

View File

@ -9,7 +9,7 @@ using System.Globalization;
namespace webImTray { namespace webImTray {
class Options { class Options {
public const string DEFAULT_SERVER = "http://localhost/webim"; public const string DEFAULT_SERVER = "http://openwebim.org/webim";
public const string PENDING_USERS_PAGE = "/operator/users.php"; public const string PENDING_USERS_PAGE = "/operator/users.php";
public const string SETTINGS_PAGE = "/operator/operators.php"; public const string SETTINGS_PAGE = "/operator/operators.php";
private const string HTTP_PREFIX = "http://"; private const string HTTP_PREFIX = "http://";
@ -107,17 +107,5 @@ namespace webImTray {
if (args.Length == 1 && args[0].Equals("/show")) if (args.Length == 1 && args[0].Equals("/show"))
forceShowWindow = true; forceShowWindow = true;
} }
public static bool RussianLocale {
get {
return Application.UserAppDataRegistry.GetValue("isrussianlocale", "true").ToString().ToLower().Equals("true");
} set {
Application.UserAppDataRegistry.SetValue("isrussianlocale", value.ToString());
}
}
public static ResourceManager resourceManager = new ResourceManager("webImTray.webImTray", System.Reflection.Assembly.GetExecutingAssembly());
public static CultureInfo englishCulture = new CultureInfo("en-US");
public static CultureInfo russianCulture = new CultureInfo("ru-RU");
} }
} }

View File

@ -23,105 +23,85 @@ namespace webImTray {
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() { private void InitializeComponent() {
System.Windows.Forms.Label label3;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About));
System.Windows.Forms.Label label4;
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
label3 = new System.Windows.Forms.Label(); label3 = new System.Windows.Forms.Label();
label4 = new System.Windows.Forms.Label(); label4 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// label3 // label3
// //
label3.AutoSize = true; label3.AccessibleDescription = null;
label3.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); label3.AccessibleName = null;
label3.Location = new System.Drawing.Point(13, 114); resources.ApplyResources(label3, "label3");
label3.Name = "label3"; label3.Name = "label3";
label3.Padding = new System.Windows.Forms.Padding(0, 0, 0, 7);
label3.Size = new System.Drawing.Size(335, 21);
label3.TabIndex = 3;
// //
// label4 // label4
// //
label4.AutoSize = true; label4.AccessibleDescription = null;
label4.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); label4.AccessibleName = null;
label4.Location = new System.Drawing.Point(13, 135); resources.ApplyResources(label4, "label4");
label4.Name = "label4"; label4.Name = "label4";
label4.Padding = new System.Windows.Forms.Padding(0, 0, 0, 7);
label4.Size = new System.Drawing.Size(138, 21);
label4.TabIndex = 4;
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AccessibleDescription = null;
this.label1.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.label1.AccessibleName = null;
resources.ApplyResources(this.label1, "label1");
this.label1.ForeColor = System.Drawing.Color.Maroon; this.label1.ForeColor = System.Drawing.Color.Maroon;
this.label1.Location = new System.Drawing.Point(13, 20);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(208, 25);
this.label1.TabIndex = 0;
// //
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AccessibleDescription = null;
this.label2.Font = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.label2.AccessibleName = null;
this.label2.Location = new System.Drawing.Point(85, 111); resources.ApplyResources(this.label2, "label2");
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(108, 18);
this.label2.TabIndex = 1;
// //
// pictureBox1 // pictureBox1
// //
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.AccessibleDescription = null;
this.pictureBox1.Location = new System.Drawing.Point(264, 0); this.pictureBox1.AccessibleName = null;
resources.ApplyResources(this.pictureBox1, "pictureBox1");
this.pictureBox1.BackgroundImage = null;
this.pictureBox1.Font = null;
this.pictureBox1.ImageLocation = null;
this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(110, 100);
this.pictureBox1.TabIndex = 2;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
// //
// linkLabel1 // linkLabel1
// //
this.linkLabel1.AutoSize = true; this.linkLabel1.AccessibleDescription = null;
this.linkLabel1.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.linkLabel1.AccessibleName = null;
this.linkLabel1.Location = new System.Drawing.Point(13, 156); resources.ApplyResources(this.linkLabel1, "linkLabel1");
this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 7);
this.linkLabel1.Size = new System.Drawing.Size(130, 21);
this.linkLabel1.TabIndex = 5;
this.linkLabel1.TabStop = true; this.linkLabel1.TabStop = true;
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.webim_ru_link); this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.webim_ru_link);
// //
// pictureBox2
//
this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
this.pictureBox2.Location = new System.Drawing.Point(17, 199);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(110, 76);
this.pictureBox2.TabIndex = 7;
this.pictureBox2.TabStop = false;
//
// About // About
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AccessibleDescription = null;
this.AccessibleName = null;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.BackgroundImage = null;
this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.linkLabel1); this.Controls.Add(this.linkLabel1);
this.Controls.Add(label4); this.Controls.Add(label4);
this.Controls.Add(label3); this.Controls.Add(label3);
this.Controls.Add(this.pictureBox1); this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label2); this.Controls.Add(this.label2);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Font = null;
this.Name = "About"; this.Name = "About";
this.Padding = new System.Windows.Forms.Padding(10, 20, 0, 0);
this.Size = new System.Drawing.Size(374, 329);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -131,10 +111,7 @@ namespace webImTray {
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.LinkLabel linkLabel1; private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.PictureBox pictureBox2;
} }
} }

View File

@ -21,28 +21,20 @@ namespace webImTray {
public void apply() { public void apply() {
} }
public string getDescription(ResourceManager resManager) { public string getDescription() {
return resManager.GetString("about"); return "About";
} }
#endregion #endregion
private void i_services_ru_link(object sender, LinkLabelLinkClickedEventArgs e) { private void i_services_ru_link(object sender, LinkLabelLinkClickedEventArgs e) {
System.Diagnostics.Process.Start("http://i-services.ru/"); System.Diagnostics.Process.Start("http://openwebim.org/");
} }
private void webim_ru_link(object sender, LinkLabelLinkClickedEventArgs e) { private void webim_ru_link(object sender, LinkLabelLinkClickedEventArgs e) {
System.Diagnostics.Process.Start("http://webim.ru/"); System.Diagnostics.Process.Start("http://openwebim.org/");
} }
public event ModifiedEvent PanelModified; public event ModifiedEvent PanelModified;
public void updateUI() {
label1.Text = Options.resourceManager.GetString("webimtray");
label2.Text = Options.resourceManager.GetString("version");
label3.Text = Options.resourceManager.GetString("copyright");
label4.Text = Options.resourceManager.GetString("visitUs");
linkLabel1.Text = Options.resourceManager.GetString("url");
}
} }
} }

View File

@ -117,13 +117,36 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="linkLabel1.Size" type="System.Drawing.Size, System.Drawing">
<value>0, 21</value>
</data>
<data name="&gt;&gt;pictureBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;pictureBox2.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="label4.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 7</value>
</data>
<data name="&gt;&gt;label2.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;pictureBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="label4.Size" type="System.Drawing.Size, System.Drawing">
<value>0, 21</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
Qk3mgQAAAAAAADYAAAAoAAAAbgAAAGQAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA//////// Qk3mgQAAAAAAADYAAAAoAAAAbgAAAGQAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA////////
@ -753,4 +776,202 @@
AZAEXRCV7vmfFZgD32CetUmZlKkO+rCf39CQANqg1gkDXSAD3vAN3iADXQAD0+mgtxgQADs= AZAEXRCV7vmfFZgD32CetUmZlKkO+rCf39CQANqg1gkDXSAD3vAN3iADXQAD0+mgtxgQADs=
</value> </value>
</data> </data>
<data name="&gt;&gt;label2.Name" xml:space="preserve">
<value>label2</value>
</data>
<data name="&gt;&gt;pictureBox1.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="$this.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>10, 20, 0, 0</value>
</data>
<data name="&gt;&gt;label4.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label4.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="label4.Text" xml:space="preserve">
<value>Please, visit our site</value>
</data>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="&gt;&gt;label2.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="&gt;&gt;pictureBox2.Type" xml:space="preserve">
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="label4.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9pt</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="&gt;&gt;pictureBox2.Name" xml:space="preserve">
<value>pictureBox2</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>0, 25</value>
</data>
<data name="&gt;&gt;linkLabel1.Name" xml:space="preserve">
<value>linkLabel1</value>
</data>
<data name="label4.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="&gt;&gt;linkLabel1.Type" xml:space="preserve">
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="linkLabel1.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9pt</value>
</data>
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
<value>0, 18</value>
</data>
<data name="label3.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label2.Text" xml:space="preserve">
<value>Version 1.1.0</value>
</data>
<data name="linkLabel1.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 7</value>
</data>
<data name="&gt;&gt;label4.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;label3.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.UserControl, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;pictureBox1.Name" xml:space="preserve">
<value>pictureBox1</value>
</data>
<data name="label3.Size" type="System.Drawing.Size, System.Drawing">
<value>0, 21</value>
</data>
<data name="label3.Text" xml:space="preserve">
<value>Copyright (c) 2006-2009 Mibew Messenger Community</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>About</value>
</data>
<data name="pictureBox2.Location" type="System.Drawing.Point, System.Drawing">
<value>17, 199</value>
</data>
<data name="label3.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;label3.Name" xml:space="preserve">
<value>label3</value>
</data>
<data name="pictureBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>110, 100</value>
</data>
<data name="&gt;&gt;label2.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
</data>
<data name="&gt;&gt;label4.Name" xml:space="preserve">
<value>label4</value>
</data>
<data name="pictureBox2.Size" type="System.Drawing.Size, System.Drawing">
<value>110, 76</value>
</data>
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
<value>85, 111</value>
</data>
<data name="&gt;&gt;linkLabel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="pictureBox1.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="$this.Size" type="System.Drawing.Size, System.Drawing">
<value>370, 325</value>
</data>
<data name="&gt;&gt;linkLabel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="label3.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9pt</value>
</data>
<data name="linkLabel1.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="label4.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="linkLabel1.Text" xml:space="preserve">
<value>http://www.openwebim.org</value>
</data>
<data name="label2.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="pictureBox2.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="label2.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 11.25pt, style=Bold</value>
</data>
<data name="linkLabel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="&gt;&gt;label1.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="linkLabel1.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 156</value>
</data>
<data name="label3.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 114</value>
</data>
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="pictureBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>264, 0</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 20</value>
</data>
<data name="&gt;&gt;label3.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="label1.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 15.75pt</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label3.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 7</value>
</data>
<data name="&gt;&gt;label3.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;pictureBox2.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>Mibew Tray</value>
</data>
<data name="label4.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 135</value>
</data>
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root> </root>

View File

@ -10,8 +10,7 @@ namespace webImTray {
interface OptionsPanel { interface OptionsPanel {
void initialize(); void initialize();
void apply(); void apply();
string getDescription(ResourceManager resManager); string getDescription();
void updateUI();
event ModifiedEvent PanelModified; event ModifiedEvent PanelModified;
} }

View File

@ -23,6 +23,7 @@ namespace webImTray {
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() { private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsConnectionPanel));
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.forceRefreshTime = new System.Windows.Forms.NumericUpDown(); this.forceRefreshTime = new System.Windows.Forms.NumericUpDown();
@ -40,6 +41,10 @@ namespace webImTray {
// //
// groupBox1 // groupBox1
// //
this.groupBox1.AccessibleDescription = null;
this.groupBox1.AccessibleName = null;
resources.ApplyResources(this.groupBox1, "groupBox1");
this.groupBox1.BackgroundImage = null;
this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.forceRefreshTime); this.groupBox1.Controls.Add(this.forceRefreshTime);
this.groupBox1.Controls.Add(this.forceRefresh); this.groupBox1.Controls.Add(this.forceRefresh);
@ -47,31 +52,21 @@ namespace webImTray {
this.groupBox1.Controls.Add(this.webimServer); this.groupBox1.Controls.Add(this.webimServer);
this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.autoDisconnect); this.groupBox1.Controls.Add(this.autoDisconnect);
this.groupBox1.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.groupBox1.Location = new System.Drawing.Point(4, 4);
this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(16, 15, 16, 15);
this.groupBox1.Size = new System.Drawing.Size(491, 250);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
// //
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AccessibleDescription = null;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.label2.AccessibleName = null;
this.label2.Location = new System.Drawing.Point(319, 154); resources.ApplyResources(this.label2, "label2");
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 17);
this.label2.TabIndex = 9;
// //
// forceRefreshTime // forceRefreshTime
// //
this.forceRefreshTime.Enabled = false; this.forceRefreshTime.AccessibleDescription = null;
this.forceRefreshTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.forceRefreshTime.AccessibleName = null;
this.forceRefreshTime.Location = new System.Drawing.Point(251, 151); resources.ApplyResources(this.forceRefreshTime, "forceRefreshTime");
this.forceRefreshTime.Margin = new System.Windows.Forms.Padding(4);
this.forceRefreshTime.Maximum = new decimal(new int[] { this.forceRefreshTime.Maximum = new decimal(new int[] {
120, 120,
0, 0,
@ -83,8 +78,6 @@ namespace webImTray {
0, 0,
0}); 0});
this.forceRefreshTime.Name = "forceRefreshTime"; this.forceRefreshTime.Name = "forceRefreshTime";
this.forceRefreshTime.Size = new System.Drawing.Size(59, 23);
this.forceRefreshTime.TabIndex = 8;
this.forceRefreshTime.Value = new decimal(new int[] { this.forceRefreshTime.Value = new decimal(new int[] {
15, 15,
0, 0,
@ -94,93 +87,79 @@ namespace webImTray {
// //
// forceRefresh // forceRefresh
// //
this.forceRefresh.AutoSize = true; this.forceRefresh.AccessibleDescription = null;
this.forceRefresh.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.forceRefresh.AccessibleName = null;
this.forceRefresh.Location = new System.Drawing.Point(23, 152); resources.ApplyResources(this.forceRefresh, "forceRefresh");
this.forceRefresh.Margin = new System.Windows.Forms.Padding(4); this.forceRefresh.BackgroundImage = null;
this.forceRefresh.Name = "forceRefresh"; this.forceRefresh.Name = "forceRefresh";
this.forceRefresh.Size = new System.Drawing.Size(187, 21);
this.forceRefresh.TabIndex = 7;
this.forceRefresh.UseVisualStyleBackColor = true; this.forceRefresh.UseVisualStyleBackColor = true;
this.forceRefresh.CheckedChanged += new System.EventHandler(this.forceRefresh_CheckedChanged); this.forceRefresh.CheckedChanged += new System.EventHandler(this.forceRefresh_CheckedChanged);
// //
// autoDesconnectOnSS // autoDesconnectOnSS
// //
this.autoDesconnectOnSS.AutoSize = true; this.autoDesconnectOnSS.AccessibleDescription = null;
this.autoDesconnectOnSS.Enabled = false; this.autoDesconnectOnSS.AccessibleName = null;
this.autoDesconnectOnSS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); resources.ApplyResources(this.autoDesconnectOnSS, "autoDesconnectOnSS");
this.autoDesconnectOnSS.Location = new System.Drawing.Point(23, 124); this.autoDesconnectOnSS.BackgroundImage = null;
this.autoDesconnectOnSS.Margin = new System.Windows.Forms.Padding(4);
this.autoDesconnectOnSS.Name = "autoDesconnectOnSS"; this.autoDesconnectOnSS.Name = "autoDesconnectOnSS";
this.autoDesconnectOnSS.Size = new System.Drawing.Size(280, 21);
this.autoDesconnectOnSS.TabIndex = 6;
this.autoDesconnectOnSS.UseVisualStyleBackColor = true; this.autoDesconnectOnSS.UseVisualStyleBackColor = true;
// //
// webimServer // webimServer
// //
this.webimServer.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.webimServer.AccessibleDescription = null;
this.webimServer.Location = new System.Drawing.Point(23, 56); this.webimServer.AccessibleName = null;
this.webimServer.Margin = new System.Windows.Forms.Padding(4); resources.ApplyResources(this.webimServer, "webimServer");
this.webimServer.BackgroundImage = null;
this.webimServer.Name = "webimServer"; this.webimServer.Name = "webimServer";
this.webimServer.Size = new System.Drawing.Size(408, 23);
this.webimServer.TabIndex = 5;
this.webimServer.TextChanged += new System.EventHandler(this.webimServer_TextChanged); this.webimServer.TextChanged += new System.EventHandler(this.webimServer_TextChanged);
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AccessibleDescription = null;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.label1.AccessibleName = null;
this.label1.Location = new System.Drawing.Point(20, 35); resources.ApplyResources(this.label1, "label1");
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(201, 17);
this.label1.TabIndex = 4;
// //
// autoDisconnect // autoDisconnect
// //
this.autoDisconnect.AutoSize = true; this.autoDisconnect.AccessibleDescription = null;
this.autoDisconnect.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.autoDisconnect.AccessibleName = null;
this.autoDisconnect.Location = new System.Drawing.Point(23, 96); resources.ApplyResources(this.autoDisconnect, "autoDisconnect");
this.autoDisconnect.Margin = new System.Windows.Forms.Padding(4); this.autoDisconnect.BackgroundImage = null;
this.autoDisconnect.Name = "autoDisconnect"; this.autoDisconnect.Name = "autoDisconnect";
this.autoDisconnect.Size = new System.Drawing.Size(261, 21);
this.autoDisconnect.TabIndex = 3;
this.autoDisconnect.UseVisualStyleBackColor = true; this.autoDisconnect.UseVisualStyleBackColor = true;
this.autoDisconnect.CheckedChanged += new System.EventHandler(this.autoDisconnect_CheckedChanged); this.autoDisconnect.CheckedChanged += new System.EventHandler(this.autoDisconnect_CheckedChanged);
// //
// groupBox2 // groupBox2
// //
this.groupBox2.AccessibleDescription = null;
this.groupBox2.AccessibleName = null;
resources.ApplyResources(this.groupBox2, "groupBox2");
this.groupBox2.BackgroundImage = null;
this.groupBox2.Controls.Add(this.showUserPreferences); this.groupBox2.Controls.Add(this.showUserPreferences);
this.groupBox2.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.groupBox2.Location = new System.Drawing.Point(4, 262);
this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(16, 15, 16, 15);
this.groupBox2.Size = new System.Drawing.Size(491, 107);
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
// //
// showUserPreferences // showUserPreferences
// //
this.showUserPreferences.AutoSize = true; this.showUserPreferences.AccessibleDescription = null;
this.showUserPreferences.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.showUserPreferences.AccessibleName = null;
this.showUserPreferences.Location = new System.Drawing.Point(20, 33); resources.ApplyResources(this.showUserPreferences, "showUserPreferences");
this.showUserPreferences.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.showUserPreferences.Name = "showUserPreferences"; this.showUserPreferences.Name = "showUserPreferences";
this.showUserPreferences.Size = new System.Drawing.Size(296, 18);
this.showUserPreferences.TabIndex = 0;
this.showUserPreferences.TabStop = true; this.showUserPreferences.TabStop = true;
this.showUserPreferences.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.showUserPropertiesOnline); this.showUserPreferences.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.showUserPropertiesOnline);
// //
// OptionsConnectionPanel // OptionsConnectionPanel
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AccessibleDescription = null;
this.AccessibleName = null;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = null;
this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox1);
this.Margin = new System.Windows.Forms.Padding(4); this.Font = null;
this.Name = "OptionsConnectionPanel"; this.Name = "OptionsConnectionPanel";
this.Size = new System.Drawing.Size(499, 405);
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.forceRefreshTime)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.forceRefreshTime)).EndInit();

View File

@ -38,8 +38,8 @@ namespace webImTray {
modified = false; modified = false;
} }
string OptionsPanel.getDescription(ResourceManager resManager) { string OptionsPanel.getDescription() {
return resManager.GetString("connection"); return "Connection";
} }
public event ModifiedEvent PanelModified; public event ModifiedEvent PanelModified;
@ -68,16 +68,5 @@ namespace webImTray {
modified = true; modified = true;
PanelModified.Invoke(); PanelModified.Invoke();
} }
public void updateUI() {
groupBox1.Text = Options.resourceManager.GetString("connection");
label1.Text = Options.resourceManager.GetString("server");
autoDisconnect.Text = Options.resourceManager.GetString("autoDisconnect");
autoDesconnectOnSS.Text = Options.resourceManager.GetString("autoDesconnectOnSS");
groupBox2.Text = Options.resourceManager.GetString("operatorPreferences");
showUserPreferences.Text = Options.resourceManager.GetString("showUserPreferences");
label2.Text = Options.resourceManager.GetString("minutes");
forceRefresh.Text = Options.resourceManager.GetString("forceRefresh");
}
} }
} }

View File

@ -117,4 +117,316 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<data name="forceRefresh.Text" xml:space="preserve">
<value>Force page update every</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="forceRefresh.Location" type="System.Drawing.Point, System.Drawing">
<value>17, 124</value>
</data>
<data name="groupBox2.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt, style=Bold</value>
</data>
<data name="&gt;&gt;autoDisconnect.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;autoDisconnect.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="forceRefreshTime.Size" type="System.Drawing.Size, System.Drawing">
<value>45, 20</value>
</data>
<data name="&gt;&gt;groupBox2.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label2.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="forceRefresh.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;autoDesconnectOnSS.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="forceRefresh.Size" type="System.Drawing.Size, System.Drawing">
<value>145, 17</value>
</data>
<data name="autoDesconnectOnSS.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="&gt;&gt;showUserPreferences.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="autoDisconnect.Location" type="System.Drawing.Point, System.Drawing">
<value>17, 78</value>
</data>
<data name="forceRefresh.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="&gt;&gt;label2.Name" xml:space="preserve">
<value>label2</value>
</data>
<data name="showUserPreferences.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="showUserPreferences.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 27</value>
</data>
<data name="&gt;&gt;groupBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
</data>
<data name="groupBox2.Text" xml:space="preserve">
<value>Operator preferences</value>
</data>
<data name="showUserPreferences.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="autoDesconnectOnSS.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>125, 13</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="forceRefreshTime.Location" type="System.Drawing.Point, System.Drawing">
<value>188, 123</value>
</data>
<data name="&gt;&gt;showUserPreferences.Name" xml:space="preserve">
<value>showUserPreferences</value>
</data>
<data name="&gt;&gt;groupBox1.Name" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;webimServer.Name" xml:space="preserve">
<value>webimServer</value>
</data>
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
<value>43, 13</value>
</data>
<data name="webimServer.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="&gt;&gt;label2.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="label2.Text" xml:space="preserve">
<value>minutes</value>
</data>
<data name="autoDesconnectOnSS.Size" type="System.Drawing.Size, System.Drawing">
<value>231, 17</value>
</data>
<data name="webimServer.Location" type="System.Drawing.Point, System.Drawing">
<value>17, 46</value>
</data>
<data name="autoDesconnectOnSS.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="&gt;&gt;webimServer.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;groupBox2.Name" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="label2.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="autoDisconnect.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="autoDisconnect.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="forceRefresh.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>OptionsConnectionPanel</value>
</data>
<data name="&gt;&gt;showUserPreferences.Type" xml:space="preserve">
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="groupBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="&gt;&gt;forceRefreshTime.Name" xml:space="preserve">
<value>forceRefreshTime</value>
</data>
<data name="groupBox2.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 213</value>
</data>
<data name="&gt;&gt;autoDesconnectOnSS.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;label2.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;groupBox2.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="autoDisconnect.Text" xml:space="preserve">
<value>Become idle if the computer is locked</value>
</data>
<data name="&gt;&gt;autoDisconnect.Name" xml:space="preserve">
<value>autoDisconnect</value>
</data>
<data name="&gt;&gt;forceRefresh.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
<value>239, 125</value>
</data>
<data name="forceRefreshTime.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
</data>
<data name="autoDisconnect.Size" type="System.Drawing.Size, System.Drawing">
<value>202, 17</value>
</data>
<data name="$this.Size" type="System.Drawing.Size, System.Drawing">
<value>374, 329</value>
</data>
<data name="&gt;&gt;forceRefreshTime.Type" xml:space="preserve">
<value>System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="forceRefreshTime.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.UserControl, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="groupBox1.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="groupBox1.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt, style=Bold</value>
</data>
<data name="&gt;&gt;groupBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;autoDisconnect.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="&gt;&gt;forceRefreshTime.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="autoDesconnectOnSS.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="groupBox1.Text" xml:space="preserve">
<value>Connection</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;label1.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;webimServer.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;showUserPreferences.Parent" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="showUserPreferences.Text" xml:space="preserve">
<value>Click here to change your preferences online</value>
</data>
<data name="showUserPreferences.Size" type="System.Drawing.Size, System.Drawing">
<value>252, 14</value>
</data>
<data name="&gt;&gt;forceRefreshTime.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="webimServer.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="autoDesconnectOnSS.Location" type="System.Drawing.Point, System.Drawing">
<value>17, 101</value>
</data>
<data name="&gt;&gt;webimServer.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="autoDesconnectOnSS.Text" xml:space="preserve">
<value>Become idle if the screen saver is activated</value>
</data>
<data name="&gt;&gt;forceRefresh.Name" xml:space="preserve">
<value>forceRefresh</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 28</value>
</data>
<data name="forceRefreshTime.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="label1.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="autoDisconnect.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="label2.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="&gt;&gt;autoDesconnectOnSS.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;autoDesconnectOnSS.Name" xml:space="preserve">
<value>autoDesconnectOnSS</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="groupBox2.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>12, 12, 12, 12</value>
</data>
<data name="groupBox1.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>12, 12, 12, 12</value>
</data>
<data name="webimServer.Size" type="System.Drawing.Size, System.Drawing">
<value>307, 20</value>
</data>
<data name="showUserPreferences.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9pt</value>
</data>
<data name="&gt;&gt;forceRefresh.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>Mibew Messenger server</value>
</data>
<data name="&gt;&gt;forceRefresh.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="groupBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>368, 203</value>
</data>
<data name="groupBox2.Size" type="System.Drawing.Size, System.Drawing">
<value>368, 87</value>
</data>
<data name="groupBox2.TabIndex" type="System.Int32, mscorlib">
<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>
</root> </root>

View File

@ -34,73 +34,56 @@ namespace webImTray {
// //
// pageSelector // pageSelector
// //
this.pageSelector.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); resources.ApplyResources(this.pageSelector, "pageSelector");
this.pageSelector.FullRowSelect = true; this.pageSelector.FullRowSelect = true;
this.pageSelector.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; this.pageSelector.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
this.pageSelector.HideSelection = false; this.pageSelector.HideSelection = false;
this.pageSelector.Location = new System.Drawing.Point(12, 14);
this.pageSelector.MultiSelect = false; this.pageSelector.MultiSelect = false;
this.pageSelector.Name = "pageSelector"; this.pageSelector.Name = "pageSelector";
this.pageSelector.ShowGroups = false; this.pageSelector.ShowGroups = false;
this.pageSelector.Size = new System.Drawing.Size(175, 329);
this.pageSelector.TabIndex = 0;
this.pageSelector.UseCompatibleStateImageBehavior = false; this.pageSelector.UseCompatibleStateImageBehavior = false;
this.pageSelector.View = System.Windows.Forms.View.List; this.pageSelector.View = System.Windows.Forms.View.List;
this.pageSelector.SelectedIndexChanged += new System.EventHandler(this.panelSelectionChanged); this.pageSelector.SelectedIndexChanged += new System.EventHandler(this.panelSelectionChanged);
// //
// ok // ok
// //
this.ok.Location = new System.Drawing.Point(341, 360); resources.ApplyResources(this.ok, "ok");
this.ok.Name = "ok"; this.ok.Name = "ok";
this.ok.Size = new System.Drawing.Size(75, 23);
this.ok.TabIndex = 1;
this.ok.UseVisualStyleBackColor = true; this.ok.UseVisualStyleBackColor = true;
this.ok.Click += new System.EventHandler(this.ok_Click); this.ok.Click += new System.EventHandler(this.ok_Click);
// //
// cancel // cancel
// //
this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancel.Location = new System.Drawing.Point(422, 360); resources.ApplyResources(this.cancel, "cancel");
this.cancel.Name = "cancel"; this.cancel.Name = "cancel";
this.cancel.Size = new System.Drawing.Size(75, 23);
this.cancel.TabIndex = 2;
this.cancel.UseVisualStyleBackColor = true; this.cancel.UseVisualStyleBackColor = true;
// //
// apply // apply
// //
this.apply.Enabled = false; resources.ApplyResources(this.apply, "apply");
this.apply.Location = new System.Drawing.Point(503, 360);
this.apply.Name = "apply"; this.apply.Name = "apply";
this.apply.Size = new System.Drawing.Size(75, 23);
this.apply.TabIndex = 3;
this.apply.UseVisualStyleBackColor = true; this.apply.UseVisualStyleBackColor = true;
this.apply.Click += new System.EventHandler(this.apply_Click); this.apply.Click += new System.EventHandler(this.apply_Click);
// //
// container // container
// //
this.container.Location = new System.Drawing.Point(204, 14); resources.ApplyResources(this.container, "container");
this.container.Name = "container"; this.container.Name = "container";
this.container.Size = new System.Drawing.Size(374, 329);
this.container.TabIndex = 4;
// //
// linkLabel1 // linkLabel1
// //
this.linkLabel1.AutoSize = true; resources.ApplyResources(this.linkLabel1, "linkLabel1");
this.linkLabel1.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.linkLabel1.Location = new System.Drawing.Point(12, 360);
this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(96, 16);
this.linkLabel1.TabIndex = 5;
this.linkLabel1.TabStop = true; this.linkLabel1.TabStop = true;
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.openWebIMSite); this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.openWebIMSite);
// //
// OptionsDialog // OptionsDialog
// //
this.AcceptButton = this.ok; this.AcceptButton = this.ok;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancel; this.CancelButton = this.cancel;
this.ClientSize = new System.Drawing.Size(590, 395);
this.Controls.Add(this.linkLabel1); this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.container); this.Controls.Add(this.container);
this.Controls.Add(this.apply); this.Controls.Add(this.apply);
@ -108,7 +91,6 @@ namespace webImTray {
this.Controls.Add(this.ok); this.Controls.Add(this.ok);
this.Controls.Add(this.pageSelector); this.Controls.Add(this.pageSelector);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "OptionsDialog"; this.Name = "OptionsDialog";

View File

@ -43,7 +43,7 @@ namespace webImTray {
bool inited = false; bool inited = false;
pageSelector.Items.Clear(); pageSelector.Items.Clear();
foreach (OptionsPanel p in panels) { foreach (OptionsPanel p in panels) {
ListViewItem item = new ListViewItem(p.getDescription(Options.resourceManager)); ListViewItem item = new ListViewItem(p.getDescription());
if (!inited) { if (!inited) {
item.Selected = true; item.Selected = true;
changePanel(p); changePanel(p);
@ -67,7 +67,7 @@ namespace webImTray {
OptionsPanel getPanel(string s) { OptionsPanel getPanel(string s) {
foreach (OptionsPanel p in panels) { foreach (OptionsPanel p in panels) {
if (s.Equals(p.getDescription(Options.resourceManager))) if (s.Equals(p.getDescription()))
return p; return p;
} }
@ -85,7 +85,7 @@ namespace webImTray {
} }
private void openWebIMSite(object sender, LinkLabelLinkClickedEventArgs e) { private void openWebIMSite(object sender, LinkLabelLinkClickedEventArgs e) {
System.Diagnostics.Process.Start("http://webim.ru/"); System.Diagnostics.Process.Start("http://openwebim.org/");
} }
private void applyChanges() { private void applyChanges() {
@ -105,13 +105,6 @@ namespace webImTray {
} }
public static void updateUI() { public static void updateUI() {
for (int i = 0; i < 4; i++) {
((OptionsPanel)panels[i]).updateUI();
}
currentInstance.ok.Text = Options.resourceManager.GetString("ok");
currentInstance.cancel.Text = Options.resourceManager.GetString("cancel");
currentInstance.apply.Text = Options.resourceManager.GetString("apply");
currentInstance.Text = Options.resourceManager.GetString("optionsTitle");
currentInstance.updatePageSelector(); currentInstance.updatePageSelector();
} }
} }

View File

@ -118,6 +118,163 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pageSelector.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 9.75pt</value>
</data>
<data name="pageSelector.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 14</value>
</data>
<data name="pageSelector.Size" type="System.Drawing.Size, System.Drawing">
<value>175, 329</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="pageSelector.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;pageSelector.Name" xml:space="preserve">
<value>pageSelector</value>
</data>
<data name="&gt;&gt;pageSelector.Type" xml:space="preserve">
<value>System.Windows.Forms.ListView, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;pageSelector.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;pageSelector.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="ok.Location" type="System.Drawing.Point, System.Drawing">
<value>341, 360</value>
</data>
<data name="ok.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="ok.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="ok.Text" xml:space="preserve">
<value>OK</value>
</data>
<data name="&gt;&gt;ok.Name" xml:space="preserve">
<value>ok</value>
</data>
<data name="&gt;&gt;ok.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;ok.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;ok.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="cancel.Location" type="System.Drawing.Point, System.Drawing">
<value>422, 360</value>
</data>
<data name="cancel.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="cancel.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="cancel.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="&gt;&gt;cancel.Name" xml:space="preserve">
<value>cancel</value>
</data>
<data name="&gt;&gt;cancel.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;cancel.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;cancel.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="apply.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="apply.Location" type="System.Drawing.Point, System.Drawing">
<value>503, 360</value>
</data>
<data name="apply.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="apply.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="apply.Text" xml:space="preserve">
<value>Apply</value>
</data>
<data name="&gt;&gt;apply.Name" xml:space="preserve">
<value>apply</value>
</data>
<data name="&gt;&gt;apply.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;apply.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;apply.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="container.Location" type="System.Drawing.Point, System.Drawing">
<value>204, 14</value>
</data>
<data name="container.Size" type="System.Drawing.Size, System.Drawing">
<value>374, 329</value>
</data>
<data name="container.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="&gt;&gt;container.Name" xml:space="preserve">
<value>container</value>
</data>
<data name="&gt;&gt;container.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;container.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;container.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="linkLabel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="linkLabel1.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt</value>
</data>
<data name="linkLabel1.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 360</value>
</data>
<data name="linkLabel1.Size" type="System.Drawing.Size, System.Drawing">
<value>0, 16</value>
</data>
<data name="linkLabel1.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;linkLabel1.Name" xml:space="preserve">
<value>linkLabel1</value>
</data>
<data name="&gt;&gt;linkLabel1.Type" xml:space="preserve">
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;linkLabel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;linkLabel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>590, 395</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
AAABAAEAEhIAAAAACADYBQAAFgAAACgAAAASAAAAJAAAAAEACAAAAAAAaAEAAAAAAAAAAAAAAAEAAAAB AAABAAEAEhIAAAAACADYBQAAFgAAACgAAAASAAAAJAAAAAEACAAAAAAAaAEAAAAAAAAAAAAAAAEAAAAB
@ -148,4 +305,13 @@
AAAAAAAAAAAAAP//wAD//8AA AAAAAAAAAAAAAP//wAD//8AA
</value> </value>
</data> </data>
<data name="$this.Text" xml:space="preserve">
<value>Mibew Tray Options</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>OptionsDialog</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root> </root>

View File

@ -25,6 +25,7 @@ namespace webImTray {
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() { private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsGeneralPanel));
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.hideWhenStarted = new System.Windows.Forms.CheckBox(); this.hideWhenStarted = new System.Windows.Forms.CheckBox();
this.autoStart = new System.Windows.Forms.CheckBox(); this.autoStart = new System.Windows.Forms.CheckBox();
@ -47,44 +48,28 @@ namespace webImTray {
this.groupBox1.Controls.Add(this.hideWhenStarted); this.groupBox1.Controls.Add(this.hideWhenStarted);
this.groupBox1.Controls.Add(this.autoStart); this.groupBox1.Controls.Add(this.autoStart);
this.groupBox1.Controls.Add(this.showInTaskBar); this.groupBox1.Controls.Add(this.showInTaskBar);
this.groupBox1.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); resources.ApplyResources(this.groupBox1, "groupBox1");
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(12);
this.groupBox1.Size = new System.Drawing.Size(368, 106);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
// //
// hideWhenStarted // hideWhenStarted
// //
this.hideWhenStarted.AutoSize = true; resources.ApplyResources(this.hideWhenStarted, "hideWhenStarted");
this.hideWhenStarted.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.hideWhenStarted.Location = new System.Drawing.Point(15, 76);
this.hideWhenStarted.Name = "hideWhenStarted"; this.hideWhenStarted.Name = "hideWhenStarted";
this.hideWhenStarted.Size = new System.Drawing.Size(134, 17);
this.hideWhenStarted.TabIndex = 3;
this.hideWhenStarted.UseVisualStyleBackColor = true; this.hideWhenStarted.UseVisualStyleBackColor = true;
this.hideWhenStarted.CheckedChanged += new System.EventHandler(this.checkboxChanged); this.hideWhenStarted.CheckedChanged += new System.EventHandler(this.checkboxChanged);
// //
// autoStart // autoStart
// //
this.autoStart.AutoSize = true; resources.ApplyResources(this.autoStart, "autoStart");
this.autoStart.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.autoStart.Location = new System.Drawing.Point(15, 53);
this.autoStart.Name = "autoStart"; this.autoStart.Name = "autoStart";
this.autoStart.Size = new System.Drawing.Size(225, 17);
this.autoStart.TabIndex = 1;
this.autoStart.UseVisualStyleBackColor = true; this.autoStart.UseVisualStyleBackColor = true;
this.autoStart.CheckedChanged += new System.EventHandler(this.checkboxChanged); this.autoStart.CheckedChanged += new System.EventHandler(this.checkboxChanged);
// //
// showInTaskBar // showInTaskBar
// //
this.showInTaskBar.AutoSize = true; resources.ApplyResources(this.showInTaskBar, "showInTaskBar");
this.showInTaskBar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.showInTaskBar.Location = new System.Drawing.Point(15, 30);
this.showInTaskBar.Name = "showInTaskBar"; this.showInTaskBar.Name = "showInTaskBar";
this.showInTaskBar.Size = new System.Drawing.Size(103, 17);
this.showInTaskBar.TabIndex = 0;
this.showInTaskBar.UseVisualStyleBackColor = true; this.showInTaskBar.UseVisualStyleBackColor = true;
this.showInTaskBar.CheckedChanged += new System.EventHandler(this.checkboxChanged); this.showInTaskBar.CheckedChanged += new System.EventHandler(this.checkboxChanged);
// //
@ -94,53 +79,31 @@ namespace webImTray {
this.groupBox2.Controls.Add(this.textBox1); this.groupBox2.Controls.Add(this.textBox1);
this.groupBox2.Controls.Add(this.showOptions); this.groupBox2.Controls.Add(this.showOptions);
this.groupBox2.Controls.Add(this.showHide); this.groupBox2.Controls.Add(this.showHide);
this.groupBox2.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); resources.ApplyResources(this.groupBox2, "groupBox2");
this.groupBox2.Location = new System.Drawing.Point(3, 115);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(12);
this.groupBox2.Size = new System.Drawing.Size(368, 89);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
// //
// textBox2 // textBox2
// //
this.textBox2.Enabled = false; resources.ApplyResources(this.textBox2, "textBox2");
this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.textBox2.Location = new System.Drawing.Point(216, 52);
this.textBox2.Name = "textBox2"; this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(100, 20);
this.textBox2.TabIndex = 3;
// //
// textBox1 // textBox1
// //
this.textBox1.Enabled = false; resources.ApplyResources(this.textBox1, "textBox1");
this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.textBox1.Location = new System.Drawing.Point(216, 29);
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 20);
this.textBox1.TabIndex = 2;
// //
// showOptions // showOptions
// //
this.showOptions.AutoSize = true; resources.ApplyResources(this.showOptions, "showOptions");
this.showOptions.Enabled = false;
this.showOptions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.showOptions.Location = new System.Drawing.Point(15, 54);
this.showOptions.Name = "showOptions"; this.showOptions.Name = "showOptions";
this.showOptions.Size = new System.Drawing.Size(90, 17);
this.showOptions.TabIndex = 1;
this.showOptions.UseVisualStyleBackColor = true; this.showOptions.UseVisualStyleBackColor = true;
this.showOptions.CheckedChanged += new System.EventHandler(this.checkboxChanged); this.showOptions.CheckedChanged += new System.EventHandler(this.checkboxChanged);
// //
// showHide // showHide
// //
this.showHide.AutoSize = true; resources.ApplyResources(this.showHide, "showHide");
this.showHide.Enabled = false;
this.showHide.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.showHide.Location = new System.Drawing.Point(15, 31);
this.showHide.Name = "showHide"; this.showHide.Name = "showHide";
this.showHide.Size = new System.Drawing.Size(147, 17);
this.showHide.TabIndex = 0;
this.showHide.UseVisualStyleBackColor = true; this.showHide.UseVisualStyleBackColor = true;
this.showHide.CheckedChanged += new System.EventHandler(this.checkboxChanged); this.showHide.CheckedChanged += new System.EventHandler(this.checkboxChanged);
// //
@ -148,46 +111,34 @@ namespace webImTray {
// //
this.languageBox.Controls.Add(this.radioRussian); this.languageBox.Controls.Add(this.radioRussian);
this.languageBox.Controls.Add(this.radioEnglish); this.languageBox.Controls.Add(this.radioEnglish);
this.languageBox.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold); resources.ApplyResources(this.languageBox, "languageBox");
this.languageBox.Location = new System.Drawing.Point(3, 210);
this.languageBox.Name = "languageBox"; this.languageBox.Name = "languageBox";
this.languageBox.Size = new System.Drawing.Size(371, 53);
this.languageBox.TabIndex = 2;
this.languageBox.TabStop = false; this.languageBox.TabStop = false;
// //
// radioRussian // radioRussian
// //
this.radioRussian.AutoSize = true; resources.ApplyResources(this.radioRussian, "radioRussian");
this.radioRussian.Checked = true; this.radioRussian.Checked = true;
this.radioRussian.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.radioRussian.Location = new System.Drawing.Point(101, 30);
this.radioRussian.Name = "radioRussian"; this.radioRussian.Name = "radioRussian";
this.radioRussian.Size = new System.Drawing.Size(63, 17);
this.radioRussian.TabIndex = 1;
this.radioRussian.TabStop = true; this.radioRussian.TabStop = true;
this.radioRussian.UseVisualStyleBackColor = true; this.radioRussian.UseVisualStyleBackColor = true;
this.radioRussian.CheckedChanged += new System.EventHandler(this.radioRussian_CheckedChanged); this.radioRussian.CheckedChanged += new System.EventHandler(this.radioRussian_CheckedChanged);
// //
// radioEnglish // radioEnglish
// //
this.radioEnglish.AutoSize = true; resources.ApplyResources(this.radioEnglish, "radioEnglish");
this.radioEnglish.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.radioEnglish.Location = new System.Drawing.Point(15, 30);
this.radioEnglish.Name = "radioEnglish"; this.radioEnglish.Name = "radioEnglish";
this.radioEnglish.Size = new System.Drawing.Size(59, 17);
this.radioEnglish.TabIndex = 0;
this.radioEnglish.UseVisualStyleBackColor = true; this.radioEnglish.UseVisualStyleBackColor = true;
this.radioEnglish.CheckedChanged += new System.EventHandler(this.radioEnglish_CheckedChanged); this.radioEnglish.CheckedChanged += new System.EventHandler(this.radioEnglish_CheckedChanged);
// //
// OptionsGeneralPanel // OptionsGeneralPanel
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.languageBox); this.Controls.Add(this.languageBox);
this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox1);
this.Name = "OptionsGeneralPanel"; this.Name = "OptionsGeneralPanel";
this.Size = new System.Drawing.Size(374, 329);
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false); this.groupBox2.ResumeLayout(false);

View File

@ -30,14 +30,11 @@ namespace webImTray {
Options.HideAfterStart = hideWhenStarted.Checked; Options.HideAfterStart = hideWhenStarted.Checked;
// Save locale // Save locale
Options.RussianLocale = radioRussian.Checked; // Options.AppLocale = ...
// Apply locale // Apply locale
if (radioEnglish.Checked) { // Thread.CurrentThread.CurrentUICulture = Options.englishCulture;
Thread.CurrentThread.CurrentUICulture = Options.englishCulture;
} else if (radioRussian.Checked) {
Thread.CurrentThread.CurrentUICulture = Options.russianCulture;
}
// Update UI according to the current locale // Update UI according to the current locale
OptionsDialog.updateUI(); OptionsDialog.updateUI();
modified = false; modified = false;
@ -50,11 +47,7 @@ namespace webImTray {
hideWhenStarted.Checked = Options.HideAfterStart; hideWhenStarted.Checked = Options.HideAfterStart;
// Restore previously set locale // Restore previously set locale
if (!Options.RussianLocale) { // TODO
radioEnglish.Checked = true;
} else {
radioRussian.Checked = true;
}
// Update UI according to the current locale // Update UI according to the current locale
OptionsDialog.updateUI(); OptionsDialog.updateUI();
@ -62,21 +55,8 @@ namespace webImTray {
modified = false; modified = false;
} }
string OptionsPanel.getDescription(ResourceManager resManager) { string OptionsPanel.getDescription() {
return resManager.GetString("general"); return "General";
}
public void updateUI() {
groupBox1.Text = Options.resourceManager.GetString("application");
showInTaskBar.Text = Options.resourceManager.GetString("showInTaskBar");
autoStart.Text = Options.resourceManager.GetString("autoStart");
hideWhenStarted.Text = Options.resourceManager.GetString("hideWhenStarted");
groupBox2.Text = Options.resourceManager.GetString("hotKeys");
showOptions.Text = Options.resourceManager.GetString("showOptions");
showHide.Text = Options.resourceManager.GetString("showHide");
languageBox.Text = Options.resourceManager.GetString("language");
radioRussian.Text = Options.resourceManager.GetString("russian");
radioEnglish.Text = Options.resourceManager.GetString("english");
} }
private void radioEnglish_CheckedChanged(object sender, EventArgs e) { private void radioEnglish_CheckedChanged(object sender, EventArgs e) {

View File

@ -117,4 +117,379 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<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>
<data name="hideWhenStarted.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 76</value>
</data>
<data name="hideWhenStarted.Size" type="System.Drawing.Size, System.Drawing">
<value>134, 17</value>
</data>
<data name="hideWhenStarted.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="hideWhenStarted.Text" xml:space="preserve">
<value>Hide window after start</value>
</data>
<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="autoStart.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="autoStart.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="autoStart.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 53</value>
</data>
<data name="autoStart.Size" type="System.Drawing.Size, System.Drawing">
<value>225, 17</value>
</data>
<data name="autoStart.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="autoStart.Text" xml:space="preserve">
<value>Start automatically when starting Windows</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="showInTaskBar.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="showInTaskBar.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="showInTaskBar.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 30</value>
</data>
<data name="showInTaskBar.Size" type="System.Drawing.Size, System.Drawing">
<value>102, 17</value>
</data>
<data name="showInTaskBar.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="showInTaskBar.Text" xml:space="preserve">
<value>Show in taskbar</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>
<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>
<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="textBox2.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="textBox2.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="textBox2.Location" type="System.Drawing.Point, System.Drawing">
<value>216, 52</value>
</data>
<data name="textBox2.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="textBox2.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;textBox2.Name" xml:space="preserve">
<value>textBox2</value>
</data>
<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>
<data name="&gt;&gt;textBox2.Parent" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="&gt;&gt;textBox2.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="textBox1.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="textBox1.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="textBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>216, 29</value>
</data>
<data name="textBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="textBox1.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="&gt;&gt;textBox1.Name" xml:space="preserve">
<value>textBox1</value>
</data>
<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;textBox1.Parent" xml:space="preserve">
<value>groupBox2</value>
</data>
<data name="&gt;&gt;textBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="showOptions.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="showOptions.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="showOptions.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="showOptions.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 54</value>
</data>
<data name="showOptions.Size" type="System.Drawing.Size, System.Drawing">
<value>90, 17</value>
</data>
<data name="showOptions.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="showOptions.Text" xml:space="preserve">
<value>Show options</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="showHide.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="showHide.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="showHide.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="showHide.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 31</value>
</data>
<data name="showHide.Size" type="System.Drawing.Size, System.Drawing">
<value>144, 17</value>
</data>
<data name="showHide.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="showHide.Text" xml:space="preserve">
<value>Show/Hide main window</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;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">
<value>0</value>
</data>
<data name="radioEnglish.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="radioEnglish.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</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">
<value>languageBox</value>
</data>
<data name="&gt;&gt;radioEnglish.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="languageBox.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 9.75pt, style=Bold</value>
</data>
<data name="languageBox.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 210</value>
</data>
<data name="languageBox.Size" type="System.Drawing.Size, System.Drawing">
<value>371, 53</value>
</data>
<data name="languageBox.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="languageBox.Text" xml:space="preserve">
<value>Language</value>
</data>
<data name="&gt;&gt;languageBox.Name" xml:space="preserve">
<value>languageBox</value>
</data>
<data name="&gt;&gt;languageBox.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;languageBox.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;languageBox.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.Size" type="System.Drawing.Size, System.Drawing">
<value>374, 329</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>OptionsGeneralPanel</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.UserControl, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root> </root>

View File

@ -23,6 +23,7 @@ namespace webImTray {
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() { private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsSoundsPanel));
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.playSoundOnVisitor = new System.Windows.Forms.CheckBox(); this.playSoundOnVisitor = new System.Windows.Forms.CheckBox();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
@ -31,32 +32,22 @@ namespace webImTray {
// groupBox1 // groupBox1
// //
this.groupBox1.Controls.Add(this.playSoundOnVisitor); this.groupBox1.Controls.Add(this.playSoundOnVisitor);
this.groupBox1.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); resources.ApplyResources(this.groupBox1, "groupBox1");
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(12);
this.groupBox1.Size = new System.Drawing.Size(368, 156);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
// //
// playSoundOnVisitor // playSoundOnVisitor
// //
this.playSoundOnVisitor.AutoSize = true; resources.ApplyResources(this.playSoundOnVisitor, "playSoundOnVisitor");
this.playSoundOnVisitor.Enabled = false;
this.playSoundOnVisitor.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.playSoundOnVisitor.Location = new System.Drawing.Point(15, 28);
this.playSoundOnVisitor.Name = "playSoundOnVisitor"; this.playSoundOnVisitor.Name = "playSoundOnVisitor";
this.playSoundOnVisitor.Size = new System.Drawing.Size(171, 17);
this.playSoundOnVisitor.TabIndex = 0;
this.playSoundOnVisitor.UseVisualStyleBackColor = true; this.playSoundOnVisitor.UseVisualStyleBackColor = true;
// //
// OptionsSoundsPanel // OptionsSoundsPanel
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox1);
this.Name = "OptionsSoundsPanel"; this.Name = "OptionsSoundsPanel";
this.Size = new System.Drawing.Size(374, 329);
this.Load += new System.EventHandler(this.OptionsSoundsPanel_Load); this.Load += new System.EventHandler(this.OptionsSoundsPanel_Load);
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();

View File

@ -25,13 +25,8 @@ namespace webImTray {
void OptionsPanel.initialize() { void OptionsPanel.initialize() {
} }
string OptionsPanel.getDescription(ResourceManager resManager) { string OptionsPanel.getDescription() {
return resManager.GetString("sound"); return "Sound";
}
public void updateUI() {
groupBox1.Text = Options.resourceManager.GetString("notifications");
playSoundOnVisitor.Text = Options.resourceManager.GetString("playSoundOnVisitor");
} }
} }
} }

View File

@ -117,4 +117,85 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="playSoundOnVisitor.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="playSoundOnVisitor.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="playSoundOnVisitor.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
</data>
<data name="playSoundOnVisitor.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 28</value>
</data>
<data name="playSoundOnVisitor.Size" type="System.Drawing.Size, System.Drawing">
<value>171, 17</value>
</data>
<data name="playSoundOnVisitor.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="playSoundOnVisitor.Text" xml:space="preserve">
<value>Play sound when visitor comes</value>
</data>
<data name="&gt;&gt;playSoundOnVisitor.Name" xml:space="preserve">
<value>playSoundOnVisitor</value>
</data>
<data name="&gt;&gt;playSoundOnVisitor.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;playSoundOnVisitor.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;playSoundOnVisitor.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<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, 156</value>
</data>
<data name="groupBox1.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="groupBox1.Text" xml:space="preserve">
<value>Notifications</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>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.Size" type="System.Drawing.Size, System.Drawing">
<value>374, 329</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>OptionsSoundsPanel</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.UserControl, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root> </root>

View File

@ -1,7 +1,7 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup> <PropertyGroup>
<ProjectType>Local</ProjectType> <ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion> <ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{21C7CA72-7F77-416C-9FD7-2DF748443E46}</ProjectGuid> <ProjectGuid>{21C7CA72-7F77-416C-9FD7-2DF748443E46}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -26,6 +26,7 @@
</FileUpgradeFlags> </FileUpgradeFlags>
<UpgradeBackupLocation> <UpgradeBackupLocation>
</UpgradeBackupLocation> </UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
@ -150,16 +151,6 @@
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<Compile Include="UserActivityHook.cs" /> <Compile Include="UserActivityHook.cs" />
<Compile Include="webImTray.en-US.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>webImTray.en-US.resx</DependentUpon>
</Compile>
<Compile Include="webImTray.ru-RU.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>webImTray.ru-RU.resx</DependentUpon>
</Compile>
<EmbeddedResource Include="App.resx"> <EmbeddedResource Include="App.resx">
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
@ -194,16 +185,6 @@
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="webImTray.en-US.resx">
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>webImTray.en-US.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="webImTray.ru-RU.resx">
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>webImTray.ru-RU.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>

View File

@ -1,240 +0,0 @@
<?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>
<data name="about" xml:space="preserve">
<value>About</value>
</data>
<data name="application" xml:space="preserve">
<value>Application</value>
</data>
<data name="apply" xml:space="preserve">
<value>Apply</value>
</data>
<data name="autoDesconnectOnSS" xml:space="preserve">
<value>Become idle if the screen saver is activated</value>
</data>
<data name="autoDisconnect" xml:space="preserve">
<value>Become idle if the computer is locked</value>
</data>
<data name="autoStart" xml:space="preserve">
<value>Start automatically when starting Windows</value>
</data>
<data name="cancel" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="connection" xml:space="preserve">
<value>Connection</value>
</data>
<data name="connectionMI" xml:space="preserve">
<value>Connection</value>
</data>
<data name="copyright" xml:space="preserve">
<value>Copyright (c) 2006-2008 Web Messenger Creators Community</value>
</data>
<data name="english" xml:space="preserve">
<value>English</value>
</data>
<data name="exitConfirmation" xml:space="preserve">
<value>Do you want to quit WebIM for Tray?</value>
</data>
<data name="forceRefresh" xml:space="preserve">
<value>Force page update every</value>
</data>
<data name="general" xml:space="preserve">
<value>General</value>
</data>
<data name="hideWhenStarted" xml:space="preserve">
<value>Hide window after start</value>
</data>
<data name="hideWindow" xml:space="preserve">
<value>Hide window</value>
</data>
<data name="hotKeys" xml:space="preserve">
<value>Hotkeys</value>
</data>
<data name="language" xml:space="preserve">
<value>Language</value>
</data>
<data name="minutes" xml:space="preserve">
<value>minutes</value>
</data>
<data name="notifications" xml:space="preserve">
<value>Notifications</value>
</data>
<data name="ok" xml:space="preserve">
<value>OK</value>
</data>
<data name="operatorPreferences" xml:space="preserve">
<value>Operator preferences</value>
</data>
<data name="optionsMenuItem" xml:space="preserve">
<value>Options</value>
</data>
<data name="optionsTitle" xml:space="preserve">
<value>Web IM Tray Options</value>
</data>
<data name="playSoundOnVisitor" xml:space="preserve">
<value>Play sound when visitor comes</value>
</data>
<data name="refreshMenuItem" xml:space="preserve">
<value>Refresh</value>
</data>
<data name="russian" xml:space="preserve">
<value>Russian</value>
</data>
<data name="server" xml:space="preserve">
<value>Web Instant Messenger server</value>
</data>
<data name="showHide" xml:space="preserve">
<value>Show/Hide main window</value>
</data>
<data name="showInTaskBar" xml:space="preserve">
<value>Show in taskbar</value>
</data>
<data name="showOptions" xml:space="preserve">
<value>Show options</value>
</data>
<data name="showUserPreferences" xml:space="preserve">
<value>Click here to change your preferences online</value>
</data>
<data name="sound" xml:space="preserve">
<value>Sound</value>
</data>
<data name="trayExit" xml:space="preserve">
<value>Exit</value>
</data>
<data name="trayOptions" xml:space="preserve">
<value>Optoins..</value>
</data>
<data name="url" xml:space="preserve">
<value>http://www.webim.ru</value>
</data>
<data name="version" xml:space="preserve">
<value>version 1.0.4</value>
</data>
<data name="visitUs" xml:space="preserve">
<value>Please, visit our site</value>
</data>
<data name="webimtray" xml:space="preserve">
<value>Web Messenger Tray</value>
</data>
<data name="webMessenger" xml:space="preserve">
<value>Web Messenger</value>
</data>
</root>

View File

@ -1,240 +0,0 @@
<?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>
<data name="about" xml:space="preserve">
<value>О программе</value>
</data>
<data name="application" xml:space="preserve">
<value>Приложение</value>
</data>
<data name="apply" xml:space="preserve">
<value>Применить</value>
</data>
<data name="autoDesconnectOnSS" xml:space="preserve">
<value>Автоматически отсоединяться, если запущен хранитель экрана</value>
</data>
<data name="autoDisconnect" xml:space="preserve">
<value>Автоматически отсоединяться, если компьютер заблокирован</value>
</data>
<data name="autoStart" xml:space="preserve">
<value>Запускать автоматически при загрузке системы</value>
</data>
<data name="cancel" xml:space="preserve">
<value>Отменить</value>
</data>
<data name="connection" xml:space="preserve">
<value>Соединение</value>
</data>
<data name="connectionMI" xml:space="preserve">
<value>Связь</value>
</data>
<data name="copyright" xml:space="preserve">
<value>(c), Команда разработчиков Веб Мессенджер, 2006-08</value>
</data>
<data name="english" xml:space="preserve">
<value>Английский</value>
</data>
<data name="exitConfirmation" xml:space="preserve">
<value>Вы действительно хотите выйти из приложения?</value>
</data>
<data name="forceRefresh" xml:space="preserve">
<value>Обновлять каждые</value>
</data>
<data name="general" xml:space="preserve">
<value>Общие</value>
</data>
<data name="hideWhenStarted" xml:space="preserve">
<value>Прятать окно после запуска</value>
</data>
<data name="hideWindow" xml:space="preserve">
<value>Скрыть окно</value>
</data>
<data name="hotKeys" xml:space="preserve">
<value>Быстрый вызов</value>
</data>
<data name="language" xml:space="preserve">
<value>Выбор языка</value>
</data>
<data name="minutes" xml:space="preserve">
<value>минут</value>
</data>
<data name="notifications" xml:space="preserve">
<value>Звуковые уведомления</value>
</data>
<data name="ok" xml:space="preserve">
<value>Ok</value>
</data>
<data name="operatorPreferences" xml:space="preserve">
<value>Настройки оператора</value>
</data>
<data name="optionsMenuItem" xml:space="preserve">
<value>Настройки</value>
</data>
<data name="optionsTitle" xml:space="preserve">
<value>Настройки Веб Мессенджер "Трей"</value>
</data>
<data name="playSoundOnVisitor" xml:space="preserve">
<value>Звуковое уведомление о появлении посетителя</value>
</data>
<data name="refreshMenuItem" xml:space="preserve">
<value>Обновить</value>
</data>
<data name="russian" xml:space="preserve">
<value>Русский</value>
</data>
<data name="server" xml:space="preserve">
<value>Сервер Веб Мессенджера</value>
</data>
<data name="showHide" xml:space="preserve">
<value>Показать/скрыть главное окно</value>
</data>
<data name="showInTaskBar" xml:space="preserve">
<value>Показывать на панели задач</value>
</data>
<data name="showOptions" xml:space="preserve">
<value>Показать настройки</value>
</data>
<data name="showUserPreferences" xml:space="preserve">
<value>Изменить ваши настройки online</value>
</data>
<data name="sound" xml:space="preserve">
<value>Звук</value>
</data>
<data name="trayExit" xml:space="preserve">
<value>Выйти</value>
</data>
<data name="trayOptions" xml:space="preserve">
<value>Настройки..</value>
</data>
<data name="url" xml:space="preserve">
<value>http://www.webim.ru</value>
</data>
<data name="version" xml:space="preserve">
<value>Версия 1.0.4</value>
</data>
<data name="visitUs" xml:space="preserve">
<value>Пожалуйста, посетите на наш сайт</value>
</data>
<data name="webimtray" xml:space="preserve">
<value>Веб Мессенджер "Трей"</value>
</data>
<data name="webMessenger" xml:space="preserve">
<value>Веб Мессенджер</value>
</data>
</root>

View File

@ -1,5 +1,5 @@
Microsoft Visual Studio Solution File, Format Version 9.00 Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2005 # Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "webImTray", "webImTray.csproj", "{21C7CA72-7F77-416C-9FD7-2DF748443E46}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "webImTray", "webImTray.csproj", "{21C7CA72-7F77-416C-9FD7-2DF748443E46}"
EndProject EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "TrayInstaller", "..\TrayInstaller\TrayInstaller.vdproj", "{3B38021D-FBAB-4038-8220-F8C569A3C658}" Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "TrayInstaller", "..\TrayInstaller\TrayInstaller.vdproj", "{3B38021D-FBAB-4038-8220-F8C569A3C658}"