[Networking] - Move Network controls into a folder.

This commit is contained in:
Ivandro Ismael 2017-02-20 17:34:53 +00:00
parent 0aa7a97460
commit fdfb6f49be
13 changed files with 1629 additions and 1629 deletions

View File

@ -1,163 +1,163 @@
namespace Nikse.SubtitleEdit.Forms
{
partial class NetworkChat
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NetworkChat));
this.listViewChat = new System.Windows.Forms.ListView();
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.imageListUsers = new System.Windows.Forms.ImageList(this.components);
this.listViewUsers = new System.Windows.Forms.ListView();
this.columnHeaderNick = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.textBoxChat = new System.Windows.Forms.TextBox();
this.buttonSendChat = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// listViewChat
//
this.listViewChat.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listViewChat.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader4});
this.listViewChat.Location = new System.Drawing.Point(3, 107);
this.listViewChat.Name = "listViewChat";
this.listViewChat.Size = new System.Drawing.Size(274, 239);
this.listViewChat.SmallImageList = this.imageListUsers;
this.listViewChat.TabIndex = 3;
this.listViewChat.UseCompatibleStateImageBehavior = false;
this.listViewChat.View = System.Windows.Forms.View.Details;
//
// columnHeader1
//
this.columnHeader1.Text = "Username";
this.columnHeader1.Width = 82;
//
// columnHeader4
//
this.columnHeader4.Text = "Text";
this.columnHeader4.Width = 188;
//
// imageListUsers
//
this.imageListUsers.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListUsers.ImageStream")));
this.imageListUsers.TransparentColor = System.Drawing.Color.Transparent;
this.imageListUsers.Images.SetKeyName(0, "person.jpg");
this.imageListUsers.Images.SetKeyName(1, "person2.jpg");
this.imageListUsers.Images.SetKeyName(2, "Person3.jpg");
this.imageListUsers.Images.SetKeyName(3, "Person4.jpg");
this.imageListUsers.Images.SetKeyName(4, "Person5.jpg");
this.imageListUsers.Images.SetKeyName(5, "Person6.jpg");
this.imageListUsers.Images.SetKeyName(6, "Person7.jpg");
this.imageListUsers.Images.SetKeyName(7, "Person8.jpg");
//
// listViewUsers
//
this.listViewUsers.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listViewUsers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeaderNick,
this.columnHeader2});
this.listViewUsers.Location = new System.Drawing.Point(2, 2);
this.listViewUsers.Name = "listViewUsers";
this.listViewUsers.Size = new System.Drawing.Size(275, 103);
this.listViewUsers.SmallImageList = this.imageListUsers;
this.listViewUsers.TabIndex = 2;
this.listViewUsers.UseCompatibleStateImageBehavior = false;
this.listViewUsers.View = System.Windows.Forms.View.Details;
//
// columnHeaderNick
//
this.columnHeaderNick.Text = "Username";
this.columnHeaderNick.Width = 178;
//
// columnHeader2
//
this.columnHeader2.Text = "IP";
this.columnHeader2.Width = 93;
//
// textBoxChat
//
this.textBoxChat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxChat.Location = new System.Drawing.Point(3, 352);
this.textBoxChat.Multiline = true;
this.textBoxChat.Name = "textBoxChat";
this.textBoxChat.Size = new System.Drawing.Size(188, 46);
this.textBoxChat.TabIndex = 0;
this.textBoxChat.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxChat_KeyDown);
//
// buttonSendChat
//
this.buttonSendChat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSendChat.Location = new System.Drawing.Point(197, 375);
this.buttonSendChat.Name = "buttonSendChat";
this.buttonSendChat.Size = new System.Drawing.Size(75, 23);
this.buttonSendChat.TabIndex = 1;
this.buttonSendChat.Text = "Send message";
this.buttonSendChat.UseVisualStyleBackColor = true;
this.buttonSendChat.Click += new System.EventHandler(this.buttonSendChat_Click);
//
// NetworkChat
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(281, 402);
this.Controls.Add(this.listViewChat);
this.Controls.Add(this.listViewUsers);
this.Controls.Add(this.textBoxChat);
this.Controls.Add(this.buttonSendChat);
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimumSize = new System.Drawing.Size(200, 300);
this.Name = "NetworkChat";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "NetworkChat";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListView listViewChat;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader4;
private System.Windows.Forms.ListView listViewUsers;
private System.Windows.Forms.ColumnHeader columnHeaderNick;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.TextBox textBoxChat;
private System.Windows.Forms.Button buttonSendChat;
private System.Windows.Forms.ImageList imageListUsers;
}
namespace Nikse.SubtitleEdit.Forms
{
partial class NetworkChat
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NetworkChat));
this.listViewChat = new System.Windows.Forms.ListView();
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.imageListUsers = new System.Windows.Forms.ImageList(this.components);
this.listViewUsers = new System.Windows.Forms.ListView();
this.columnHeaderNick = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.textBoxChat = new System.Windows.Forms.TextBox();
this.buttonSendChat = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// listViewChat
//
this.listViewChat.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listViewChat.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader4});
this.listViewChat.Location = new System.Drawing.Point(3, 107);
this.listViewChat.Name = "listViewChat";
this.listViewChat.Size = new System.Drawing.Size(274, 239);
this.listViewChat.SmallImageList = this.imageListUsers;
this.listViewChat.TabIndex = 3;
this.listViewChat.UseCompatibleStateImageBehavior = false;
this.listViewChat.View = System.Windows.Forms.View.Details;
//
// columnHeader1
//
this.columnHeader1.Text = "Username";
this.columnHeader1.Width = 82;
//
// columnHeader4
//
this.columnHeader4.Text = "Text";
this.columnHeader4.Width = 188;
//
// imageListUsers
//
this.imageListUsers.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListUsers.ImageStream")));
this.imageListUsers.TransparentColor = System.Drawing.Color.Transparent;
this.imageListUsers.Images.SetKeyName(0, "person.jpg");
this.imageListUsers.Images.SetKeyName(1, "person2.jpg");
this.imageListUsers.Images.SetKeyName(2, "Person3.jpg");
this.imageListUsers.Images.SetKeyName(3, "Person4.jpg");
this.imageListUsers.Images.SetKeyName(4, "Person5.jpg");
this.imageListUsers.Images.SetKeyName(5, "Person6.jpg");
this.imageListUsers.Images.SetKeyName(6, "Person7.jpg");
this.imageListUsers.Images.SetKeyName(7, "Person8.jpg");
//
// listViewUsers
//
this.listViewUsers.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listViewUsers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeaderNick,
this.columnHeader2});
this.listViewUsers.Location = new System.Drawing.Point(2, 2);
this.listViewUsers.Name = "listViewUsers";
this.listViewUsers.Size = new System.Drawing.Size(275, 103);
this.listViewUsers.SmallImageList = this.imageListUsers;
this.listViewUsers.TabIndex = 2;
this.listViewUsers.UseCompatibleStateImageBehavior = false;
this.listViewUsers.View = System.Windows.Forms.View.Details;
//
// columnHeaderNick
//
this.columnHeaderNick.Text = "Username";
this.columnHeaderNick.Width = 178;
//
// columnHeader2
//
this.columnHeader2.Text = "IP";
this.columnHeader2.Width = 93;
//
// textBoxChat
//
this.textBoxChat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxChat.Location = new System.Drawing.Point(3, 352);
this.textBoxChat.Multiline = true;
this.textBoxChat.Name = "textBoxChat";
this.textBoxChat.Size = new System.Drawing.Size(188, 46);
this.textBoxChat.TabIndex = 0;
this.textBoxChat.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxChat_KeyDown);
//
// buttonSendChat
//
this.buttonSendChat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSendChat.Location = new System.Drawing.Point(197, 375);
this.buttonSendChat.Name = "buttonSendChat";
this.buttonSendChat.Size = new System.Drawing.Size(75, 23);
this.buttonSendChat.TabIndex = 1;
this.buttonSendChat.Text = "Send message";
this.buttonSendChat.UseVisualStyleBackColor = true;
this.buttonSendChat.Click += new System.EventHandler(this.buttonSendChat_Click);
//
// NetworkChat
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(281, 402);
this.Controls.Add(this.listViewChat);
this.Controls.Add(this.listViewUsers);
this.Controls.Add(this.textBoxChat);
this.Controls.Add(this.buttonSendChat);
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimumSize = new System.Drawing.Size(200, 300);
this.Name = "NetworkChat";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "NetworkChat";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListView listViewChat;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader4;
private System.Windows.Forms.ListView listViewUsers;
private System.Windows.Forms.ColumnHeader columnHeaderNick;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.TextBox textBoxChat;
private System.Windows.Forms.Button buttonSendChat;
private System.Windows.Forms.ImageList imageListUsers;
}
}

View File

@ -1,116 +1,116 @@
using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Logic;
using Nikse.SubtitleEdit.Logic.Networking;
using System;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public sealed partial class NetworkChat : Form
{
private Logic.Networking.NikseWebServiceSession _networkSession;
protected override bool ShowWithoutActivation
{
get { return true; }
}
public NetworkChat()
{
InitializeComponent();
buttonSendChat.Text = Configuration.Settings.Language.NetworkChat.Send;
listViewUsers.Columns[0].Text = Configuration.Settings.Language.General.UserName;
listViewUsers.Columns[1].Text = Configuration.Settings.Language.General.IP;
listViewChat.Columns[0].Text = Configuration.Settings.Language.General.UserName;
listViewChat.Columns[1].Text = Configuration.Settings.Language.General.Text;
}
internal void Initialize(NikseWebServiceSession networkSession)
{
_networkSession = networkSession;
Text = Configuration.Settings.Language.NetworkChat.Title + " - " + _networkSession.CurrentUser.UserName;
listViewUsers.Items.Clear();
foreach (var user in _networkSession.Users)
{
AddUser(user);
}
listViewChat.Items.Clear();
foreach (var message in _networkSession.ChatLog)
{
AddChatMessage(message.User, message.Message);
listViewChat.EnsureVisible(listViewChat.Items.Count - 1);
}
}
private void buttonSendChat_Click(object sender, EventArgs e)
{
if (!string.IsNullOrWhiteSpace(textBoxChat.Text))
{
_networkSession.SendChatMessage(textBoxChat.Text.Trim());
AddChatMessage(_networkSession.CurrentUser, textBoxChat.Text.Trim());
listViewChat.EnsureVisible(listViewChat.Items.Count - 1);
_networkSession.ChatLog.Add(new NikseWebServiceSession.ChatEntry { User = _networkSession.CurrentUser, Message = textBoxChat.Text.Trim() });
}
textBoxChat.Text = string.Empty;
textBoxChat.Focus();
}
public void AddChatMessage(SeNetworkService.SeUser user, string message)
{
ListViewItem item = new ListViewItem(user.UserName);
item.Tag = _networkSession.CurrentUser;
item.ForeColor = Utilities.GetColorFromUserName(user.UserName);
item.ImageIndex = Utilities.GetNumber0To7FromUserName(user.UserName);
item.SubItems.Add(new ListViewItem.ListViewSubItem(item, message));
listViewChat.Items.Add(item);
}
private void textBoxChat_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter && e.Modifiers == Keys.None)
{
e.SuppressKeyPress = true;
buttonSendChat_Click(null, null);
}
else if (e.KeyData == (Keys.Control | Keys.A))
{
textBoxChat.SelectAll();
e.SuppressKeyPress = true;
}
else if (e.KeyData == (Keys.Control | Keys.Back))
{
UiUtil.ApplyControlBackspace(textBoxChat);
e.SuppressKeyPress = true;
}
}
internal void AddUser(SeNetworkService.SeUser user)
{
ListViewItem item = new ListViewItem(user.UserName);
item.Tag = user;
item.ForeColor = Utilities.GetColorFromUserName(user.UserName);
if (DateTime.Now.Month == 12 && DateTime.Now.Day >= 23 && DateTime.Now.Day <= 25)
item.ImageIndex = 7;
else
item.ImageIndex = Utilities.GetNumber0To7FromUserName(user.UserName);
item.SubItems.Add(new ListViewItem.ListViewSubItem(item, user.Ip));
listViewUsers.Items.Add(item);
}
internal void RemoveUser(SeNetworkService.SeUser user)
{
ListViewItem removeItem = null;
foreach (ListViewItem item in listViewUsers.Items)
{
if ((item.Tag as SeNetworkService.SeUser).UserName == user.UserName)
{
removeItem = item;
}
}
if (removeItem != null)
listViewUsers.Items.Remove(removeItem);
}
}
}
using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Logic;
using Nikse.SubtitleEdit.Logic.Networking;
using System;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public sealed partial class NetworkChat : Form
{
private Logic.Networking.NikseWebServiceSession _networkSession;
protected override bool ShowWithoutActivation
{
get { return true; }
}
public NetworkChat()
{
InitializeComponent();
buttonSendChat.Text = Configuration.Settings.Language.NetworkChat.Send;
listViewUsers.Columns[0].Text = Configuration.Settings.Language.General.UserName;
listViewUsers.Columns[1].Text = Configuration.Settings.Language.General.IP;
listViewChat.Columns[0].Text = Configuration.Settings.Language.General.UserName;
listViewChat.Columns[1].Text = Configuration.Settings.Language.General.Text;
}
internal void Initialize(NikseWebServiceSession networkSession)
{
_networkSession = networkSession;
Text = Configuration.Settings.Language.NetworkChat.Title + " - " + _networkSession.CurrentUser.UserName;
listViewUsers.Items.Clear();
foreach (var user in _networkSession.Users)
{
AddUser(user);
}
listViewChat.Items.Clear();
foreach (var message in _networkSession.ChatLog)
{
AddChatMessage(message.User, message.Message);
listViewChat.EnsureVisible(listViewChat.Items.Count - 1);
}
}
private void buttonSendChat_Click(object sender, EventArgs e)
{
if (!string.IsNullOrWhiteSpace(textBoxChat.Text))
{
_networkSession.SendChatMessage(textBoxChat.Text.Trim());
AddChatMessage(_networkSession.CurrentUser, textBoxChat.Text.Trim());
listViewChat.EnsureVisible(listViewChat.Items.Count - 1);
_networkSession.ChatLog.Add(new NikseWebServiceSession.ChatEntry { User = _networkSession.CurrentUser, Message = textBoxChat.Text.Trim() });
}
textBoxChat.Text = string.Empty;
textBoxChat.Focus();
}
public void AddChatMessage(SeNetworkService.SeUser user, string message)
{
ListViewItem item = new ListViewItem(user.UserName);
item.Tag = _networkSession.CurrentUser;
item.ForeColor = Utilities.GetColorFromUserName(user.UserName);
item.ImageIndex = Utilities.GetNumber0To7FromUserName(user.UserName);
item.SubItems.Add(new ListViewItem.ListViewSubItem(item, message));
listViewChat.Items.Add(item);
}
private void textBoxChat_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter && e.Modifiers == Keys.None)
{
e.SuppressKeyPress = true;
buttonSendChat_Click(null, null);
}
else if (e.KeyData == (Keys.Control | Keys.A))
{
textBoxChat.SelectAll();
e.SuppressKeyPress = true;
}
else if (e.KeyData == (Keys.Control | Keys.Back))
{
UiUtil.ApplyControlBackspace(textBoxChat);
e.SuppressKeyPress = true;
}
}
internal void AddUser(SeNetworkService.SeUser user)
{
ListViewItem item = new ListViewItem(user.UserName);
item.Tag = user;
item.ForeColor = Utilities.GetColorFromUserName(user.UserName);
if (DateTime.Now.Month == 12 && DateTime.Now.Day >= 23 && DateTime.Now.Day <= 25)
item.ImageIndex = 7;
else
item.ImageIndex = Utilities.GetNumber0To7FromUserName(user.UserName);
item.SubItems.Add(new ListViewItem.ListViewSubItem(item, user.Ip));
listViewUsers.Items.Add(item);
}
internal void RemoveUser(SeNetworkService.SeUser user)
{
ListViewItem removeItem = null;
foreach (ListViewItem item in listViewUsers.Items)
{
if ((item.Tag as SeNetworkService.SeUser).UserName == user.UserName)
{
removeItem = item;
}
}
if (removeItem != null)
listViewUsers.Items.Remove(removeItem);
}
}
}

View File

@ -1,208 +1,208 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="imageListUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="imageListUsers.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAo
EgAAAk1TRnQBSQFMAgEBCAEAAdgBAAHYAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBA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KgF6ApoBdAErASoBwwT/AfYBGgFuAUsBUQF0
AnkBmgF0ARoC9gX/ARUB6gFEAiIBmQIaARUBFAHyAf8B9AH/AfYCwwFRAZkBdAKaAcMBmgFLAZkBwwX/
AcMBJAEqBJoBKwEkAcME/wH0ARoBbgRLAXkBmgF0ARoB9gb/AewBEgHtAewBbQEUARwB6gFtARUBvAT/
AfYBwwNLAXQBoAHDAXQBSgHDAfYF/wH2ASQBTASaASoBJAH2BP8B9gEaAUoEdANLAcMB9gX/AfMBvAET
AewB9wGSAewBEgEUAe0BEgX/AvYBcwFKASkBUgGgAZoBcwF0AvYF/wH2AksBmgOUAUUBSwH2A/8B9AL2
ARwEmQGaAXQBcwHDAfMB9AL/AfQD/wHtARIB7AG8Ae8BFAHqARQB9wT/AfQB/wH2AZkCSwFRAXQCSwHD
AfYG/wH2AXQDSwFvAUsBRQFzAfYE/wL2ARsBHAGZAZoBGgIcAbwB9gb/AfQB/wH0AQcBbQEPARQB7AEH
AbwI/wEbAXQESwEcAfYH/wH2ARoBdAFuA0sBcwGZAfYE/wT2ARoCmQEaAfQB9gEbBf8B9AH/CPYB/wHz
Af8B9AH/AfQC/wL2AcMBeQFSAXQCwwH2Av8B8wT/AvYBmQF0Am8BdAEaAvYB9AL/AUIBTQE+BwABPgMA
ASgDAAFAAwABMAMAAQEBAAEBBQABgAEBFgAD//8AggAL
</value>
</data>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="imageListUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="imageListUsers.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN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PgMA
ASgDAAFAAwABMAMAAQEBAAEBBQABgAEBFgAD//8AggAL
</value>
</data>
</root>

View File

@ -1,180 +1,180 @@
namespace Nikse.SubtitleEdit.Forms
{
partial class NetworkJoin
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.labelStatus = new System.Windows.Forms.Label();
this.labelInfo = new System.Windows.Forms.Label();
this.labelWebServiceUrl = new System.Windows.Forms.Label();
this.comboBoxWebServiceUrl = new System.Windows.Forms.ComboBox();
this.buttonCancel = new System.Windows.Forms.Button();
this.textBoxUserName = new System.Windows.Forms.TextBox();
this.buttonJoin = new System.Windows.Forms.Button();
this.labelUserName = new System.Windows.Forms.Label();
this.textBoxSessionKey = new System.Windows.Forms.TextBox();
this.labelSessionKey = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// labelStatus
//
this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(16, 167);
this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(59, 13);
this.labelStatus.TabIndex = 18;
this.labelStatus.Text = "labelStatus";
//
// labelInfo
//
this.labelInfo.AutoSize = true;
this.labelInfo.Location = new System.Drawing.Point(16, 13);
this.labelInfo.Name = "labelInfo";
this.labelInfo.Size = new System.Drawing.Size(212, 26);
this.labelInfo.TabIndex = 17;
this.labelInfo.Text = "Join existing session where multiple persons\r\ncan edit in same subtitle file.\r\n";
//
// labelWebServiceUrl
//
this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelWebServiceUrl.Location = new System.Drawing.Point(5, 112);
this.labelWebServiceUrl.Name = "labelWebServiceUrl";
this.labelWebServiceUrl.Size = new System.Drawing.Size(114, 16);
this.labelWebServiceUrl.TabIndex = 16;
this.labelWebServiceUrl.Text = "Web service URL";
this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// comboBoxWebServiceUrl
//
this.comboBoxWebServiceUrl.FormattingEnabled = true;
this.comboBoxWebServiceUrl.Items.AddRange(new object[] {
"http://www.nikse.dk/se/SeService.asmx",
"http://se-net.azurewebsites.net/SeService.asmx"});
this.comboBoxWebServiceUrl.Location = new System.Drawing.Point(125, 109);
this.comboBoxWebServiceUrl.Name = "comboBoxWebServiceUrl";
this.comboBoxWebServiceUrl.Size = new System.Drawing.Size(261, 21);
this.comboBoxWebServiceUrl.TabIndex = 2;
//
// buttonCancel
//
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(312, 147);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 21);
this.buttonCancel.TabIndex = 4;
this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
//
// textBoxUserName
//
this.textBoxUserName.Location = new System.Drawing.Point(125, 57);
this.textBoxUserName.Name = "textBoxUserName";
this.textBoxUserName.Size = new System.Drawing.Size(261, 20);
this.textBoxUserName.TabIndex = 0;
//
// buttonJoin
//
this.buttonJoin.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonJoin.Location = new System.Drawing.Point(231, 147);
this.buttonJoin.Name = "buttonJoin";
this.buttonJoin.Size = new System.Drawing.Size(75, 21);
this.buttonJoin.TabIndex = 3;
this.buttonJoin.Text = "&Join";
this.buttonJoin.UseVisualStyleBackColor = true;
this.buttonJoin.Click += new System.EventHandler(this.buttonJoin_Click);
//
// labelUserName
//
this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelUserName.Location = new System.Drawing.Point(5, 60);
this.labelUserName.Name = "labelUserName";
this.labelUserName.Size = new System.Drawing.Size(114, 16);
this.labelUserName.TabIndex = 11;
this.labelUserName.Text = "Username";
this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// textBoxSessionKey
//
this.textBoxSessionKey.Location = new System.Drawing.Point(125, 83);
this.textBoxSessionKey.Name = "textBoxSessionKey";
this.textBoxSessionKey.Size = new System.Drawing.Size(261, 20);
this.textBoxSessionKey.TabIndex = 1;
//
// labelSessionKey
//
this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelSessionKey.Location = new System.Drawing.Point(5, 86);
this.labelSessionKey.Name = "labelSessionKey";
this.labelSessionKey.Size = new System.Drawing.Size(114, 16);
this.labelSessionKey.TabIndex = 19;
this.labelSessionKey.Text = "Key";
this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// NetworkJoin
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(402, 185);
this.Controls.Add(this.textBoxSessionKey);
this.Controls.Add(this.labelSessionKey);
this.Controls.Add(this.labelStatus);
this.Controls.Add(this.labelInfo);
this.Controls.Add(this.labelWebServiceUrl);
this.Controls.Add(this.comboBoxWebServiceUrl);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.textBoxUserName);
this.Controls.Add(this.buttonJoin);
this.Controls.Add(this.labelUserName);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "NetworkJoin";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Join network session";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NetworkJoin_KeyDown);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label labelStatus;
private System.Windows.Forms.Label labelInfo;
private System.Windows.Forms.Label labelWebServiceUrl;
private System.Windows.Forms.ComboBox comboBoxWebServiceUrl;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.TextBox textBoxUserName;
private System.Windows.Forms.Button buttonJoin;
private System.Windows.Forms.Label labelUserName;
private System.Windows.Forms.TextBox textBoxSessionKey;
private System.Windows.Forms.Label labelSessionKey;
}
namespace Nikse.SubtitleEdit.Forms
{
partial class NetworkJoin
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.labelStatus = new System.Windows.Forms.Label();
this.labelInfo = new System.Windows.Forms.Label();
this.labelWebServiceUrl = new System.Windows.Forms.Label();
this.comboBoxWebServiceUrl = new System.Windows.Forms.ComboBox();
this.buttonCancel = new System.Windows.Forms.Button();
this.textBoxUserName = new System.Windows.Forms.TextBox();
this.buttonJoin = new System.Windows.Forms.Button();
this.labelUserName = new System.Windows.Forms.Label();
this.textBoxSessionKey = new System.Windows.Forms.TextBox();
this.labelSessionKey = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// labelStatus
//
this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(16, 167);
this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(59, 13);
this.labelStatus.TabIndex = 18;
this.labelStatus.Text = "labelStatus";
//
// labelInfo
//
this.labelInfo.AutoSize = true;
this.labelInfo.Location = new System.Drawing.Point(16, 13);
this.labelInfo.Name = "labelInfo";
this.labelInfo.Size = new System.Drawing.Size(212, 26);
this.labelInfo.TabIndex = 17;
this.labelInfo.Text = "Join existing session where multiple persons\r\ncan edit in same subtitle file.\r\n";
//
// labelWebServiceUrl
//
this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelWebServiceUrl.Location = new System.Drawing.Point(5, 112);
this.labelWebServiceUrl.Name = "labelWebServiceUrl";
this.labelWebServiceUrl.Size = new System.Drawing.Size(114, 16);
this.labelWebServiceUrl.TabIndex = 16;
this.labelWebServiceUrl.Text = "Web service URL";
this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// comboBoxWebServiceUrl
//
this.comboBoxWebServiceUrl.FormattingEnabled = true;
this.comboBoxWebServiceUrl.Items.AddRange(new object[] {
"http://www.nikse.dk/se/SeService.asmx",
"http://se-net.azurewebsites.net/SeService.asmx"});
this.comboBoxWebServiceUrl.Location = new System.Drawing.Point(125, 109);
this.comboBoxWebServiceUrl.Name = "comboBoxWebServiceUrl";
this.comboBoxWebServiceUrl.Size = new System.Drawing.Size(261, 21);
this.comboBoxWebServiceUrl.TabIndex = 2;
//
// buttonCancel
//
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(312, 147);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 21);
this.buttonCancel.TabIndex = 4;
this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
//
// textBoxUserName
//
this.textBoxUserName.Location = new System.Drawing.Point(125, 57);
this.textBoxUserName.Name = "textBoxUserName";
this.textBoxUserName.Size = new System.Drawing.Size(261, 20);
this.textBoxUserName.TabIndex = 0;
//
// buttonJoin
//
this.buttonJoin.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonJoin.Location = new System.Drawing.Point(231, 147);
this.buttonJoin.Name = "buttonJoin";
this.buttonJoin.Size = new System.Drawing.Size(75, 21);
this.buttonJoin.TabIndex = 3;
this.buttonJoin.Text = "&Join";
this.buttonJoin.UseVisualStyleBackColor = true;
this.buttonJoin.Click += new System.EventHandler(this.buttonJoin_Click);
//
// labelUserName
//
this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelUserName.Location = new System.Drawing.Point(5, 60);
this.labelUserName.Name = "labelUserName";
this.labelUserName.Size = new System.Drawing.Size(114, 16);
this.labelUserName.TabIndex = 11;
this.labelUserName.Text = "Username";
this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// textBoxSessionKey
//
this.textBoxSessionKey.Location = new System.Drawing.Point(125, 83);
this.textBoxSessionKey.Name = "textBoxSessionKey";
this.textBoxSessionKey.Size = new System.Drawing.Size(261, 20);
this.textBoxSessionKey.TabIndex = 1;
//
// labelSessionKey
//
this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelSessionKey.Location = new System.Drawing.Point(5, 86);
this.labelSessionKey.Name = "labelSessionKey";
this.labelSessionKey.Size = new System.Drawing.Size(114, 16);
this.labelSessionKey.TabIndex = 19;
this.labelSessionKey.Text = "Key";
this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// NetworkJoin
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(402, 185);
this.Controls.Add(this.textBoxSessionKey);
this.Controls.Add(this.labelSessionKey);
this.Controls.Add(this.labelStatus);
this.Controls.Add(this.labelInfo);
this.Controls.Add(this.labelWebServiceUrl);
this.Controls.Add(this.comboBoxWebServiceUrl);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.textBoxUserName);
this.Controls.Add(this.buttonJoin);
this.Controls.Add(this.labelUserName);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "NetworkJoin";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Join network session";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NetworkJoin_KeyDown);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label labelStatus;
private System.Windows.Forms.Label labelInfo;
private System.Windows.Forms.Label labelWebServiceUrl;
private System.Windows.Forms.ComboBox comboBoxWebServiceUrl;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.TextBox textBoxUserName;
private System.Windows.Forms.Button buttonJoin;
private System.Windows.Forms.Label labelUserName;
private System.Windows.Forms.TextBox textBoxSessionKey;
private System.Windows.Forms.Label labelSessionKey;
}
}

View File

@ -1,105 +1,105 @@
using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Net;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public partial class NetworkJoin : Form
{
private Logic.Networking.NikseWebServiceSession _networkSession;
public string FileName { get; set; }
public NetworkJoin()
{
InitializeComponent();
labelStatus.Text = string.Empty;
Text = Configuration.Settings.Language.NetworkJoin.Title;
labelInfo.Text = Configuration.Settings.Language.NetworkJoin.Information;
labelSessionKey.Text = Configuration.Settings.Language.General.SessionKey;
labelUserName.Text = Configuration.Settings.Language.General.UserName;
labelWebServiceUrl.Text = Configuration.Settings.Language.General.WebServiceUrl;
buttonJoin.Text = Configuration.Settings.Language.NetworkJoin.Join;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
UiUtil.FixLargeFonts(this, buttonCancel);
}
internal void Initialize(Logic.Networking.NikseWebServiceSession networkSession)
{
_networkSession = networkSession;
textBoxSessionKey.Text = Configuration.Settings.NetworkSettings.SessionKey;
if (textBoxSessionKey.Text.Trim().Length < 2)
textBoxSessionKey.Text = Guid.NewGuid().ToString().Replace("-", string.Empty);
comboBoxWebServiceUrl.Text = Configuration.Settings.NetworkSettings.WebServiceUrl;
textBoxUserName.Text = Configuration.Settings.NetworkSettings.UserName;
if (textBoxUserName.Text.Trim().Length < 2)
textBoxUserName.Text = Dns.GetHostName();
}
private void buttonJoin_Click(object sender, EventArgs e)
{
Configuration.Settings.NetworkSettings.SessionKey = textBoxSessionKey.Text;
Configuration.Settings.NetworkSettings.WebServiceUrl = comboBoxWebServiceUrl.Text;
Configuration.Settings.NetworkSettings.UserName = textBoxUserName.Text;
buttonJoin.Enabled = false;
buttonCancel.Enabled = false;
textBoxUserName.Enabled = false;
comboBoxWebServiceUrl.Enabled = false;
labelStatus.Text = string.Format(Configuration.Settings.Language.NetworkStart.ConnectionTo, comboBoxWebServiceUrl.Text);
Refresh();
try
{
string message;
_networkSession.Join(comboBoxWebServiceUrl.Text, textBoxUserName.Text, textBoxSessionKey.Text, out message);
if (message == "OK")
{
DialogResult = DialogResult.OK;
return;
}
else
{
if (message == "Session not found!")
MessageBox.Show(string.Format(Configuration.Settings.Language.Main.XNotFound, textBoxSessionKey.Text));
else if (message == "Username already in use!")
MessageBox.Show(string.Format(Configuration.Settings.Language.General.UserNameAlreadyInUse, textBoxSessionKey.Text));
else
MessageBox.Show(message);
}
}
catch (Exception exception)
{
MessageBox.Show(exception.Message);
}
buttonJoin.Enabled = true;
buttonCancel.Enabled = true;
textBoxUserName.Enabled = true;
comboBoxWebServiceUrl.Enabled = true;
labelStatus.Text = string.Empty;
}
private void buttonCancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
private void NetworkJoin_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
DialogResult = DialogResult.Cancel;
}
else if (e.KeyCode == UiUtil.HelpKeys)
{
Utilities.ShowHelp("#networking");
e.SuppressKeyPress = true;
}
}
}
}
using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Net;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public partial class NetworkJoin : Form
{
private Logic.Networking.NikseWebServiceSession _networkSession;
public string FileName { get; set; }
public NetworkJoin()
{
InitializeComponent();
labelStatus.Text = string.Empty;
Text = Configuration.Settings.Language.NetworkJoin.Title;
labelInfo.Text = Configuration.Settings.Language.NetworkJoin.Information;
labelSessionKey.Text = Configuration.Settings.Language.General.SessionKey;
labelUserName.Text = Configuration.Settings.Language.General.UserName;
labelWebServiceUrl.Text = Configuration.Settings.Language.General.WebServiceUrl;
buttonJoin.Text = Configuration.Settings.Language.NetworkJoin.Join;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
UiUtil.FixLargeFonts(this, buttonCancel);
}
internal void Initialize(Logic.Networking.NikseWebServiceSession networkSession)
{
_networkSession = networkSession;
textBoxSessionKey.Text = Configuration.Settings.NetworkSettings.SessionKey;
if (textBoxSessionKey.Text.Trim().Length < 2)
textBoxSessionKey.Text = Guid.NewGuid().ToString().Replace("-", string.Empty);
comboBoxWebServiceUrl.Text = Configuration.Settings.NetworkSettings.WebServiceUrl;
textBoxUserName.Text = Configuration.Settings.NetworkSettings.UserName;
if (textBoxUserName.Text.Trim().Length < 2)
textBoxUserName.Text = Dns.GetHostName();
}
private void buttonJoin_Click(object sender, EventArgs e)
{
Configuration.Settings.NetworkSettings.SessionKey = textBoxSessionKey.Text;
Configuration.Settings.NetworkSettings.WebServiceUrl = comboBoxWebServiceUrl.Text;
Configuration.Settings.NetworkSettings.UserName = textBoxUserName.Text;
buttonJoin.Enabled = false;
buttonCancel.Enabled = false;
textBoxUserName.Enabled = false;
comboBoxWebServiceUrl.Enabled = false;
labelStatus.Text = string.Format(Configuration.Settings.Language.NetworkStart.ConnectionTo, comboBoxWebServiceUrl.Text);
Refresh();
try
{
string message;
_networkSession.Join(comboBoxWebServiceUrl.Text, textBoxUserName.Text, textBoxSessionKey.Text, out message);
if (message == "OK")
{
DialogResult = DialogResult.OK;
return;
}
else
{
if (message == "Session not found!")
MessageBox.Show(string.Format(Configuration.Settings.Language.Main.XNotFound, textBoxSessionKey.Text));
else if (message == "Username already in use!")
MessageBox.Show(string.Format(Configuration.Settings.Language.General.UserNameAlreadyInUse, textBoxSessionKey.Text));
else
MessageBox.Show(message);
}
}
catch (Exception exception)
{
MessageBox.Show(exception.Message);
}
buttonJoin.Enabled = true;
buttonCancel.Enabled = true;
textBoxUserName.Enabled = true;
comboBoxWebServiceUrl.Enabled = true;
labelStatus.Text = string.Empty;
}
private void buttonCancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
private void NetworkJoin_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
DialogResult = DialogResult.Cancel;
}
else if (e.KeyCode == UiUtil.HelpKeys)
{
Utilities.ShowHelp("#networking");
e.SuppressKeyPress = true;
}
}
}
}

View File

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

View File

@ -1,171 +1,171 @@
namespace Nikse.SubtitleEdit.Forms
{
partial class NetworkLogAndInfo
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.textBoxSessionKey = new System.Windows.Forms.TextBox();
this.labelSessionKey = new System.Windows.Forms.Label();
this.labelLog = new System.Windows.Forms.Label();
this.textBoxLog = new System.Windows.Forms.TextBox();
this.buttonOK = new System.Windows.Forms.Button();
this.labelWebServiceUrl = new System.Windows.Forms.Label();
this.textBoxUserName = new System.Windows.Forms.TextBox();
this.labelUserName = new System.Windows.Forms.Label();
this.textBoxWebServiceUrl = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// textBoxSessionKey
//
this.textBoxSessionKey.Location = new System.Drawing.Point(157, 16);
this.textBoxSessionKey.Name = "textBoxSessionKey";
this.textBoxSessionKey.ReadOnly = true;
this.textBoxSessionKey.Size = new System.Drawing.Size(290, 20);
this.textBoxSessionKey.TabIndex = 1;
//
// labelSessionKey
//
this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelSessionKey.Location = new System.Drawing.Point(12, 19);
this.labelSessionKey.Name = "labelSessionKey";
this.labelSessionKey.Size = new System.Drawing.Size(139, 17);
this.labelSessionKey.TabIndex = 21;
this.labelSessionKey.Text = "Session key";
this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// labelLog
//
this.labelLog.AutoSize = true;
this.labelLog.Location = new System.Drawing.Point(9, 109);
this.labelLog.Name = "labelLog";
this.labelLog.Size = new System.Drawing.Size(28, 13);
this.labelLog.TabIndex = 24;
this.labelLog.Text = "Log:";
//
// textBoxLog
//
this.textBoxLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxLog.Location = new System.Drawing.Point(12, 125);
this.textBoxLog.Multiline = true;
this.textBoxLog.Name = "textBoxLog";
this.textBoxLog.ReadOnly = true;
this.textBoxLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBoxLog.Size = new System.Drawing.Size(543, 179);
this.textBoxLog.TabIndex = 4;
//
// buttonOK
//
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(480, 310);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 21);
this.buttonOK.TabIndex = 0;
this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
//
// labelWebServiceUrl
//
this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelWebServiceUrl.Location = new System.Drawing.Point(12, 71);
this.labelWebServiceUrl.Name = "labelWebServiceUrl";
this.labelWebServiceUrl.Size = new System.Drawing.Size(139, 17);
this.labelWebServiceUrl.TabIndex = 29;
this.labelWebServiceUrl.Text = "Web service URL";
this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// textBoxUserName
//
this.textBoxUserName.Location = new System.Drawing.Point(157, 42);
this.textBoxUserName.Name = "textBoxUserName";
this.textBoxUserName.ReadOnly = true;
this.textBoxUserName.Size = new System.Drawing.Size(290, 20);
this.textBoxUserName.TabIndex = 2;
//
// labelUserName
//
this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelUserName.Location = new System.Drawing.Point(12, 45);
this.labelUserName.Name = "labelUserName";
this.labelUserName.Size = new System.Drawing.Size(139, 17);
this.labelUserName.TabIndex = 28;
this.labelUserName.Text = "Username";
this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// textBoxWebServiceUrl
//
this.textBoxWebServiceUrl.Location = new System.Drawing.Point(157, 68);
this.textBoxWebServiceUrl.Name = "textBoxWebServiceUrl";
this.textBoxWebServiceUrl.ReadOnly = true;
this.textBoxWebServiceUrl.Size = new System.Drawing.Size(290, 20);
this.textBoxWebServiceUrl.TabIndex = 3;
//
// NetworkLogAndInfo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(565, 337);
this.Controls.Add(this.textBoxWebServiceUrl);
this.Controls.Add(this.labelWebServiceUrl);
this.Controls.Add(this.textBoxUserName);
this.Controls.Add(this.labelUserName);
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.labelLog);
this.Controls.Add(this.textBoxLog);
this.Controls.Add(this.textBoxSessionKey);
this.Controls.Add(this.labelSessionKey);
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(500, 350);
this.Name = "NetworkLogAndInfo";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Network session info and log";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NetworkLogAndInfo_KeyDown);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBoxSessionKey;
private System.Windows.Forms.Label labelSessionKey;
private System.Windows.Forms.Label labelLog;
private System.Windows.Forms.TextBox textBoxLog;
private System.Windows.Forms.Button buttonOK;
private System.Windows.Forms.Label labelWebServiceUrl;
private System.Windows.Forms.TextBox textBoxUserName;
private System.Windows.Forms.Label labelUserName;
private System.Windows.Forms.TextBox textBoxWebServiceUrl;
}
namespace Nikse.SubtitleEdit.Forms
{
partial class NetworkLogAndInfo
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.textBoxSessionKey = new System.Windows.Forms.TextBox();
this.labelSessionKey = new System.Windows.Forms.Label();
this.labelLog = new System.Windows.Forms.Label();
this.textBoxLog = new System.Windows.Forms.TextBox();
this.buttonOK = new System.Windows.Forms.Button();
this.labelWebServiceUrl = new System.Windows.Forms.Label();
this.textBoxUserName = new System.Windows.Forms.TextBox();
this.labelUserName = new System.Windows.Forms.Label();
this.textBoxWebServiceUrl = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// textBoxSessionKey
//
this.textBoxSessionKey.Location = new System.Drawing.Point(157, 16);
this.textBoxSessionKey.Name = "textBoxSessionKey";
this.textBoxSessionKey.ReadOnly = true;
this.textBoxSessionKey.Size = new System.Drawing.Size(290, 20);
this.textBoxSessionKey.TabIndex = 1;
//
// labelSessionKey
//
this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelSessionKey.Location = new System.Drawing.Point(12, 19);
this.labelSessionKey.Name = "labelSessionKey";
this.labelSessionKey.Size = new System.Drawing.Size(139, 17);
this.labelSessionKey.TabIndex = 21;
this.labelSessionKey.Text = "Session key";
this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// labelLog
//
this.labelLog.AutoSize = true;
this.labelLog.Location = new System.Drawing.Point(9, 109);
this.labelLog.Name = "labelLog";
this.labelLog.Size = new System.Drawing.Size(28, 13);
this.labelLog.TabIndex = 24;
this.labelLog.Text = "Log:";
//
// textBoxLog
//
this.textBoxLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxLog.Location = new System.Drawing.Point(12, 125);
this.textBoxLog.Multiline = true;
this.textBoxLog.Name = "textBoxLog";
this.textBoxLog.ReadOnly = true;
this.textBoxLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBoxLog.Size = new System.Drawing.Size(543, 179);
this.textBoxLog.TabIndex = 4;
//
// buttonOK
//
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(480, 310);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 21);
this.buttonOK.TabIndex = 0;
this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
//
// labelWebServiceUrl
//
this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelWebServiceUrl.Location = new System.Drawing.Point(12, 71);
this.labelWebServiceUrl.Name = "labelWebServiceUrl";
this.labelWebServiceUrl.Size = new System.Drawing.Size(139, 17);
this.labelWebServiceUrl.TabIndex = 29;
this.labelWebServiceUrl.Text = "Web service URL";
this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// textBoxUserName
//
this.textBoxUserName.Location = new System.Drawing.Point(157, 42);
this.textBoxUserName.Name = "textBoxUserName";
this.textBoxUserName.ReadOnly = true;
this.textBoxUserName.Size = new System.Drawing.Size(290, 20);
this.textBoxUserName.TabIndex = 2;
//
// labelUserName
//
this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelUserName.Location = new System.Drawing.Point(12, 45);
this.labelUserName.Name = "labelUserName";
this.labelUserName.Size = new System.Drawing.Size(139, 17);
this.labelUserName.TabIndex = 28;
this.labelUserName.Text = "Username";
this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// textBoxWebServiceUrl
//
this.textBoxWebServiceUrl.Location = new System.Drawing.Point(157, 68);
this.textBoxWebServiceUrl.Name = "textBoxWebServiceUrl";
this.textBoxWebServiceUrl.ReadOnly = true;
this.textBoxWebServiceUrl.Size = new System.Drawing.Size(290, 20);
this.textBoxWebServiceUrl.TabIndex = 3;
//
// NetworkLogAndInfo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(565, 337);
this.Controls.Add(this.textBoxWebServiceUrl);
this.Controls.Add(this.labelWebServiceUrl);
this.Controls.Add(this.textBoxUserName);
this.Controls.Add(this.labelUserName);
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.labelLog);
this.Controls.Add(this.textBoxLog);
this.Controls.Add(this.textBoxSessionKey);
this.Controls.Add(this.labelSessionKey);
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(500, 350);
this.Name = "NetworkLogAndInfo";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Network session info and log";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NetworkLogAndInfo_KeyDown);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBoxSessionKey;
private System.Windows.Forms.Label labelSessionKey;
private System.Windows.Forms.Label labelLog;
private System.Windows.Forms.TextBox textBoxLog;
private System.Windows.Forms.Button buttonOK;
private System.Windows.Forms.Label labelWebServiceUrl;
private System.Windows.Forms.TextBox textBoxUserName;
private System.Windows.Forms.Label labelUserName;
private System.Windows.Forms.TextBox textBoxWebServiceUrl;
}
}

View File

@ -1,39 +1,39 @@
using Nikse.SubtitleEdit.Core;
using System;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public sealed partial class NetworkLogAndInfo : Form
{
public NetworkLogAndInfo()
{
InitializeComponent();
Text = Configuration.Settings.Language.NetworkLogAndInfo.Title;
labelSessionKey.Text = Configuration.Settings.Language.General.SessionKey;
labelUserName.Text = Configuration.Settings.Language.General.UserName;
labelWebServiceUrl.Text = Configuration.Settings.Language.General.WebServiceUrl;
labelLog.Text = Configuration.Settings.Language.NetworkLogAndInfo.Log;
buttonOK.Text = Configuration.Settings.Language.General.Ok;
}
internal void Initialize(Logic.Networking.NikseWebServiceSession _networkSession)
{
textBoxSessionKey.Text = _networkSession.SessionId;
textBoxUserName.Text = _networkSession.CurrentUser.UserName;
textBoxWebServiceUrl.Text = _networkSession.WebServiceUrl;
textBoxLog.Text = _networkSession.GetLog();
}
private void buttonOK_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
private void NetworkLogAndInfo_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
DialogResult = DialogResult.Cancel;
}
}
}
using Nikse.SubtitleEdit.Core;
using System;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public sealed partial class NetworkLogAndInfo : Form
{
public NetworkLogAndInfo()
{
InitializeComponent();
Text = Configuration.Settings.Language.NetworkLogAndInfo.Title;
labelSessionKey.Text = Configuration.Settings.Language.General.SessionKey;
labelUserName.Text = Configuration.Settings.Language.General.UserName;
labelWebServiceUrl.Text = Configuration.Settings.Language.General.WebServiceUrl;
labelLog.Text = Configuration.Settings.Language.NetworkLogAndInfo.Log;
buttonOK.Text = Configuration.Settings.Language.General.Ok;
}
internal void Initialize(Logic.Networking.NikseWebServiceSession _networkSession)
{
textBoxSessionKey.Text = _networkSession.SessionId;
textBoxUserName.Text = _networkSession.CurrentUser.UserName;
textBoxWebServiceUrl.Text = _networkSession.WebServiceUrl;
textBoxLog.Text = _networkSession.GetLog();
}
private void buttonOK_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
private void NetworkLogAndInfo_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
DialogResult = DialogResult.Cancel;
}
}
}

View File

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

View File

@ -1,180 +1,180 @@
namespace Nikse.SubtitleEdit.Forms
{
partial class NetworkStart
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.buttonCancel = new System.Windows.Forms.Button();
this.textBoxUserName = new System.Windows.Forms.TextBox();
this.buttonStart = new System.Windows.Forms.Button();
this.labelUserName = new System.Windows.Forms.Label();
this.comboBoxWebServiceUrl = new System.Windows.Forms.ComboBox();
this.labelWebServiceUrl = new System.Windows.Forms.Label();
this.labelInfo = new System.Windows.Forms.Label();
this.labelStatus = new System.Windows.Forms.Label();
this.labelSessionKey = new System.Windows.Forms.Label();
this.textBoxSessionKey = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// buttonCancel
//
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(312, 147);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 21);
this.buttonCancel.TabIndex = 4;
this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
//
// textBoxUserName
//
this.textBoxUserName.Location = new System.Drawing.Point(125, 83);
this.textBoxUserName.Name = "textBoxUserName";
this.textBoxUserName.Size = new System.Drawing.Size(262, 20);
this.textBoxUserName.TabIndex = 1;
//
// buttonStart
//
this.buttonStart.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonStart.Location = new System.Drawing.Point(231, 147);
this.buttonStart.Name = "buttonStart";
this.buttonStart.Size = new System.Drawing.Size(75, 21);
this.buttonStart.TabIndex = 3;
this.buttonStart.Text = "&Start";
this.buttonStart.UseVisualStyleBackColor = true;
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
//
// labelUserName
//
this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelUserName.Location = new System.Drawing.Point(5, 86);
this.labelUserName.Name = "labelUserName";
this.labelUserName.Size = new System.Drawing.Size(114, 16);
this.labelUserName.TabIndex = 3;
this.labelUserName.Text = "Username";
this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// comboBoxWebServiceUrl
//
this.comboBoxWebServiceUrl.FormattingEnabled = true;
this.comboBoxWebServiceUrl.Items.AddRange(new object[] {
"http://www.nikse.dk/se/SeService.asmx",
"http://se-net.azurewebsites.net/seService.asmx"});
this.comboBoxWebServiceUrl.Location = new System.Drawing.Point(125, 109);
this.comboBoxWebServiceUrl.Name = "comboBoxWebServiceUrl";
this.comboBoxWebServiceUrl.Size = new System.Drawing.Size(262, 21);
this.comboBoxWebServiceUrl.TabIndex = 2;
//
// labelWebServiceUrl
//
this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelWebServiceUrl.Location = new System.Drawing.Point(5, 112);
this.labelWebServiceUrl.Name = "labelWebServiceUrl";
this.labelWebServiceUrl.Size = new System.Drawing.Size(114, 16);
this.labelWebServiceUrl.TabIndex = 8;
this.labelWebServiceUrl.Text = "Web service URL";
this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// labelInfo
//
this.labelInfo.AutoSize = true;
this.labelInfo.Location = new System.Drawing.Point(16, 13);
this.labelInfo.Name = "labelInfo";
this.labelInfo.Size = new System.Drawing.Size(200, 26);
this.labelInfo.TabIndex = 9;
this.labelInfo.Text = "Start new session where multiple persons\r\ncan edit in same subtitle file.\r\n";
//
// labelStatus
//
this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(16, 167);
this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(59, 13);
this.labelStatus.TabIndex = 10;
this.labelStatus.Text = "labelStatus";
//
// labelSessionKey
//
this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelSessionKey.Location = new System.Drawing.Point(5, 60);
this.labelSessionKey.Name = "labelSessionKey";
this.labelSessionKey.Size = new System.Drawing.Size(114, 16);
this.labelSessionKey.TabIndex = 11;
this.labelSessionKey.Text = "Session Key";
this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// textBoxSessionKey
//
this.textBoxSessionKey.Location = new System.Drawing.Point(125, 57);
this.textBoxSessionKey.Name = "textBoxSessionKey";
this.textBoxSessionKey.Size = new System.Drawing.Size(262, 20);
this.textBoxSessionKey.TabIndex = 0;
//
// NetworkStart
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(402, 185);
this.Controls.Add(this.textBoxSessionKey);
this.Controls.Add(this.labelSessionKey);
this.Controls.Add(this.labelStatus);
this.Controls.Add(this.labelInfo);
this.Controls.Add(this.labelWebServiceUrl);
this.Controls.Add(this.comboBoxWebServiceUrl);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.textBoxUserName);
this.Controls.Add(this.buttonStart);
this.Controls.Add(this.labelUserName);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "NetworkStart";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Start network session";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NetworkNew_KeyDown);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.TextBox textBoxUserName;
private System.Windows.Forms.Button buttonStart;
private System.Windows.Forms.Label labelUserName;
private System.Windows.Forms.ComboBox comboBoxWebServiceUrl;
private System.Windows.Forms.Label labelWebServiceUrl;
private System.Windows.Forms.Label labelInfo;
private System.Windows.Forms.Label labelStatus;
private System.Windows.Forms.Label labelSessionKey;
private System.Windows.Forms.TextBox textBoxSessionKey;
}
namespace Nikse.SubtitleEdit.Forms
{
partial class NetworkStart
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.buttonCancel = new System.Windows.Forms.Button();
this.textBoxUserName = new System.Windows.Forms.TextBox();
this.buttonStart = new System.Windows.Forms.Button();
this.labelUserName = new System.Windows.Forms.Label();
this.comboBoxWebServiceUrl = new System.Windows.Forms.ComboBox();
this.labelWebServiceUrl = new System.Windows.Forms.Label();
this.labelInfo = new System.Windows.Forms.Label();
this.labelStatus = new System.Windows.Forms.Label();
this.labelSessionKey = new System.Windows.Forms.Label();
this.textBoxSessionKey = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// buttonCancel
//
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(312, 147);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 21);
this.buttonCancel.TabIndex = 4;
this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
//
// textBoxUserName
//
this.textBoxUserName.Location = new System.Drawing.Point(125, 83);
this.textBoxUserName.Name = "textBoxUserName";
this.textBoxUserName.Size = new System.Drawing.Size(262, 20);
this.textBoxUserName.TabIndex = 1;
//
// buttonStart
//
this.buttonStart.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonStart.Location = new System.Drawing.Point(231, 147);
this.buttonStart.Name = "buttonStart";
this.buttonStart.Size = new System.Drawing.Size(75, 21);
this.buttonStart.TabIndex = 3;
this.buttonStart.Text = "&Start";
this.buttonStart.UseVisualStyleBackColor = true;
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
//
// labelUserName
//
this.labelUserName.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelUserName.Location = new System.Drawing.Point(5, 86);
this.labelUserName.Name = "labelUserName";
this.labelUserName.Size = new System.Drawing.Size(114, 16);
this.labelUserName.TabIndex = 3;
this.labelUserName.Text = "Username";
this.labelUserName.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// comboBoxWebServiceUrl
//
this.comboBoxWebServiceUrl.FormattingEnabled = true;
this.comboBoxWebServiceUrl.Items.AddRange(new object[] {
"http://www.nikse.dk/se/SeService.asmx",
"http://se-net.azurewebsites.net/seService.asmx"});
this.comboBoxWebServiceUrl.Location = new System.Drawing.Point(125, 109);
this.comboBoxWebServiceUrl.Name = "comboBoxWebServiceUrl";
this.comboBoxWebServiceUrl.Size = new System.Drawing.Size(262, 21);
this.comboBoxWebServiceUrl.TabIndex = 2;
//
// labelWebServiceUrl
//
this.labelWebServiceUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelWebServiceUrl.Location = new System.Drawing.Point(5, 112);
this.labelWebServiceUrl.Name = "labelWebServiceUrl";
this.labelWebServiceUrl.Size = new System.Drawing.Size(114, 16);
this.labelWebServiceUrl.TabIndex = 8;
this.labelWebServiceUrl.Text = "Web service URL";
this.labelWebServiceUrl.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// labelInfo
//
this.labelInfo.AutoSize = true;
this.labelInfo.Location = new System.Drawing.Point(16, 13);
this.labelInfo.Name = "labelInfo";
this.labelInfo.Size = new System.Drawing.Size(200, 26);
this.labelInfo.TabIndex = 9;
this.labelInfo.Text = "Start new session where multiple persons\r\ncan edit in same subtitle file.\r\n";
//
// labelStatus
//
this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(16, 167);
this.labelStatus.Name = "labelStatus";
this.labelStatus.Size = new System.Drawing.Size(59, 13);
this.labelStatus.TabIndex = 10;
this.labelStatus.Text = "labelStatus";
//
// labelSessionKey
//
this.labelSessionKey.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelSessionKey.Location = new System.Drawing.Point(5, 60);
this.labelSessionKey.Name = "labelSessionKey";
this.labelSessionKey.Size = new System.Drawing.Size(114, 16);
this.labelSessionKey.TabIndex = 11;
this.labelSessionKey.Text = "Session Key";
this.labelSessionKey.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// textBoxSessionKey
//
this.textBoxSessionKey.Location = new System.Drawing.Point(125, 57);
this.textBoxSessionKey.Name = "textBoxSessionKey";
this.textBoxSessionKey.Size = new System.Drawing.Size(262, 20);
this.textBoxSessionKey.TabIndex = 0;
//
// NetworkStart
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(402, 185);
this.Controls.Add(this.textBoxSessionKey);
this.Controls.Add(this.labelSessionKey);
this.Controls.Add(this.labelStatus);
this.Controls.Add(this.labelInfo);
this.Controls.Add(this.labelWebServiceUrl);
this.Controls.Add(this.comboBoxWebServiceUrl);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.textBoxUserName);
this.Controls.Add(this.buttonStart);
this.Controls.Add(this.labelUserName);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "NetworkStart";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Start network session";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NetworkNew_KeyDown);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.TextBox textBoxUserName;
private System.Windows.Forms.Button buttonStart;
private System.Windows.Forms.Label labelUserName;
private System.Windows.Forms.ComboBox comboBoxWebServiceUrl;
private System.Windows.Forms.Label labelWebServiceUrl;
private System.Windows.Forms.Label labelInfo;
private System.Windows.Forms.Label labelStatus;
private System.Windows.Forms.Label labelSessionKey;
private System.Windows.Forms.TextBox textBoxSessionKey;
}
}

View File

@ -1,103 +1,103 @@
using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Net;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public sealed partial class NetworkStart : PositionAndSizeForm
{
private Logic.Networking.NikseWebServiceSession _networkSession;
private string _fileName;
public NetworkStart()
{
InitializeComponent();
labelStatus.Text = string.Empty;
Text = Configuration.Settings.Language.NetworkStart.Title;
labelInfo.Text = Configuration.Settings.Language.NetworkStart.Information;
labelSessionKey.Text = Configuration.Settings.Language.General.SessionKey;
labelUserName.Text = Configuration.Settings.Language.General.UserName;
labelWebServiceUrl.Text = Configuration.Settings.Language.General.WebServiceUrl;
buttonStart.Text = Configuration.Settings.Language.NetworkStart.Start;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
UiUtil.FixLargeFonts(this, buttonCancel);
}
internal void Initialize(Logic.Networking.NikseWebServiceSession networkSession, string fileName)
{
_networkSession = networkSession;
_fileName = fileName;
textBoxSessionKey.Text = Configuration.Settings.NetworkSettings.SessionKey;
if (textBoxSessionKey.Text.Trim().Length < 2)
textBoxSessionKey.Text = Guid.NewGuid().ToString().Replace("-", string.Empty);
comboBoxWebServiceUrl.Text = Configuration.Settings.NetworkSettings.WebServiceUrl;
textBoxUserName.Text = Configuration.Settings.NetworkSettings.UserName;
if (textBoxUserName.Text.Trim().Length < 2)
textBoxUserName.Text = Dns.GetHostName();
}
private void buttonStart_Click(object sender, EventArgs e)
{
Configuration.Settings.NetworkSettings.SessionKey = textBoxSessionKey.Text;
Configuration.Settings.NetworkSettings.WebServiceUrl = comboBoxWebServiceUrl.Text;
Configuration.Settings.NetworkSettings.UserName = textBoxUserName.Text;
buttonStart.Enabled = false;
buttonCancel.Enabled = false;
textBoxSessionKey.Enabled = false;
textBoxUserName.Enabled = false;
comboBoxWebServiceUrl.Enabled = false;
labelStatus.Text = string.Format(Configuration.Settings.Language.NetworkStart.ConnectionTo, comboBoxWebServiceUrl.Text);
Refresh();
try
{
string message;
_networkSession.StartServer(comboBoxWebServiceUrl.Text, textBoxSessionKey.Text, textBoxUserName.Text, _fileName, out message);
if (message != "OK")
{
MessageBox.Show(message);
}
else
{
DialogResult = DialogResult.OK;
return;
}
}
catch (Exception exception)
{
MessageBox.Show(exception.Message);
}
buttonStart.Enabled = true;
buttonCancel.Enabled = true;
textBoxSessionKey.Enabled = false;
textBoxUserName.Enabled = true;
comboBoxWebServiceUrl.Enabled = true;
labelStatus.Text = string.Empty;
}
private void buttonCancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
private void NetworkNew_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
DialogResult = DialogResult.Cancel;
}
else if (e.KeyCode == UiUtil.HelpKeys)
{
Utilities.ShowHelp("#networking");
e.SuppressKeyPress = true;
}
}
}
}
using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Net;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms
{
public sealed partial class NetworkStart : PositionAndSizeForm
{
private Logic.Networking.NikseWebServiceSession _networkSession;
private string _fileName;
public NetworkStart()
{
InitializeComponent();
labelStatus.Text = string.Empty;
Text = Configuration.Settings.Language.NetworkStart.Title;
labelInfo.Text = Configuration.Settings.Language.NetworkStart.Information;
labelSessionKey.Text = Configuration.Settings.Language.General.SessionKey;
labelUserName.Text = Configuration.Settings.Language.General.UserName;
labelWebServiceUrl.Text = Configuration.Settings.Language.General.WebServiceUrl;
buttonStart.Text = Configuration.Settings.Language.NetworkStart.Start;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
UiUtil.FixLargeFonts(this, buttonCancel);
}
internal void Initialize(Logic.Networking.NikseWebServiceSession networkSession, string fileName)
{
_networkSession = networkSession;
_fileName = fileName;
textBoxSessionKey.Text = Configuration.Settings.NetworkSettings.SessionKey;
if (textBoxSessionKey.Text.Trim().Length < 2)
textBoxSessionKey.Text = Guid.NewGuid().ToString().Replace("-", string.Empty);
comboBoxWebServiceUrl.Text = Configuration.Settings.NetworkSettings.WebServiceUrl;
textBoxUserName.Text = Configuration.Settings.NetworkSettings.UserName;
if (textBoxUserName.Text.Trim().Length < 2)
textBoxUserName.Text = Dns.GetHostName();
}
private void buttonStart_Click(object sender, EventArgs e)
{
Configuration.Settings.NetworkSettings.SessionKey = textBoxSessionKey.Text;
Configuration.Settings.NetworkSettings.WebServiceUrl = comboBoxWebServiceUrl.Text;
Configuration.Settings.NetworkSettings.UserName = textBoxUserName.Text;
buttonStart.Enabled = false;
buttonCancel.Enabled = false;
textBoxSessionKey.Enabled = false;
textBoxUserName.Enabled = false;
comboBoxWebServiceUrl.Enabled = false;
labelStatus.Text = string.Format(Configuration.Settings.Language.NetworkStart.ConnectionTo, comboBoxWebServiceUrl.Text);
Refresh();
try
{
string message;
_networkSession.StartServer(comboBoxWebServiceUrl.Text, textBoxSessionKey.Text, textBoxUserName.Text, _fileName, out message);
if (message != "OK")
{
MessageBox.Show(message);
}
else
{
DialogResult = DialogResult.OK;
return;
}
}
catch (Exception exception)
{
MessageBox.Show(exception.Message);
}
buttonStart.Enabled = true;
buttonCancel.Enabled = true;
textBoxSessionKey.Enabled = false;
textBoxUserName.Enabled = true;
comboBoxWebServiceUrl.Enabled = true;
labelStatus.Text = string.Empty;
}
private void buttonCancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
private void NetworkNew_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
DialogResult = DialogResult.Cancel;
}
else if (e.KeyCode == UiUtil.HelpKeys)
{
Utilities.ShowHelp("#networking");
e.SuppressKeyPress = true;
}
}
}
}

View File

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

View File

@ -447,28 +447,28 @@
<Compile Include="Forms\ModifySelection.Designer.cs">
<DependentUpon>ModifySelection.cs</DependentUpon>
</Compile>
<Compile Include="Forms\NetworkChat.cs">
<Compile Include="Forms\Networking\NetworkChat.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\NetworkChat.Designer.cs">
<Compile Include="Forms\Networking\NetworkChat.Designer.cs">
<DependentUpon>NetworkChat.cs</DependentUpon>
</Compile>
<Compile Include="Forms\NetworkJoin.cs">
<Compile Include="Forms\Networking\NetworkJoin.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\NetworkJoin.Designer.cs">
<Compile Include="Forms\Networking\NetworkJoin.Designer.cs">
<DependentUpon>NetworkJoin.cs</DependentUpon>
</Compile>
<Compile Include="Forms\NetworkLogAndInfo.cs">
<Compile Include="Forms\Networking\NetworkLogAndInfo.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\NetworkLogAndInfo.Designer.cs">
<Compile Include="Forms\Networking\NetworkLogAndInfo.Designer.cs">
<DependentUpon>NetworkLogAndInfo.cs</DependentUpon>
</Compile>
<Compile Include="Forms\NetworkStart.cs">
<Compile Include="Forms\Networking\NetworkStart.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\NetworkStart.Designer.cs">
<Compile Include="Forms\Networking\NetworkStart.Designer.cs">
<DependentUpon>NetworkStart.cs</DependentUpon>
</Compile>
<Compile Include="Forms\OpenVideoDvd.cs">
@ -1098,16 +1098,16 @@
<EmbeddedResource Include="Forms\ModifySelection.resx">
<DependentUpon>ModifySelection.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\NetworkChat.resx">
<EmbeddedResource Include="Forms\Networking\NetworkChat.resx">
<DependentUpon>NetworkChat.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\NetworkJoin.resx">
<EmbeddedResource Include="Forms\Networking\NetworkJoin.resx">
<DependentUpon>NetworkJoin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\NetworkLogAndInfo.resx">
<EmbeddedResource Include="Forms\Networking\NetworkLogAndInfo.resx">
<DependentUpon>NetworkLogAndInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\NetworkStart.resx">
<EmbeddedResource Include="Forms\Networking\NetworkStart.resx">
<DependentUpon>NetworkStart.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\OpenVideoDvd.resx">