練習用です。いろんなものがごちゃまぜです。
| @@ -0,0 +1,108 @@ | ||
| 1 | +namespace Server | |
| 2 | +{ | |
| 3 | + partial class Form1 | |
| 4 | + { | |
| 5 | + /// <summary> | |
| 6 | + /// 必要なデザイナー変数です。 | |
| 7 | + /// </summary> | |
| 8 | + private System.ComponentModel.IContainer components = null; | |
| 9 | + | |
| 10 | + /// <summary> | |
| 11 | + /// 使用中のリソースをすべてクリーンアップします。 | |
| 12 | + /// </summary> | |
| 13 | + /// <param name="disposing">マネージ リソースを破棄する場合は true を指定し、その他の場合は false を指定します。</param> | |
| 14 | + protected override void Dispose(bool disposing) | |
| 15 | + { | |
| 16 | + if (disposing && (components != null)) | |
| 17 | + { | |
| 18 | + components.Dispose(); | |
| 19 | + } | |
| 20 | + base.Dispose(disposing); | |
| 21 | + } | |
| 22 | + | |
| 23 | + #region Windows フォーム デザイナーで生成されたコード | |
| 24 | + | |
| 25 | + /// <summary> | |
| 26 | + /// デザイナー サポートに必要なメソッドです。このメソッドの内容を | |
| 27 | + /// コード エディターで変更しないでください。 | |
| 28 | + /// </summary> | |
| 29 | + private void InitializeComponent() | |
| 30 | + { | |
| 31 | + this.rtbox_show = new System.Windows.Forms.RichTextBox(); | |
| 32 | + this.tbox_port = new System.Windows.Forms.TextBox(); | |
| 33 | + this.label1 = new System.Windows.Forms.Label(); | |
| 34 | + this.btn_start = new System.Windows.Forms.Button(); | |
| 35 | + this.btn_stop = new System.Windows.Forms.Button(); | |
| 36 | + this.SuspendLayout(); | |
| 37 | + // | |
| 38 | + // rtbox_show | |
| 39 | + // | |
| 40 | + this.rtbox_show.Location = new System.Drawing.Point(4, 2); | |
| 41 | + this.rtbox_show.Name = "rtbox_show"; | |
| 42 | + this.rtbox_show.Size = new System.Drawing.Size(275, 193); | |
| 43 | + this.rtbox_show.TabIndex = 0; | |
| 44 | + this.rtbox_show.Text = ""; | |
| 45 | + // | |
| 46 | + // tbox_port | |
| 47 | + // | |
| 48 | + this.tbox_port.Location = new System.Drawing.Point(131, 217); | |
| 49 | + this.tbox_port.Name = "tbox_port"; | |
| 50 | + this.tbox_port.Size = new System.Drawing.Size(60, 22); | |
| 51 | + this.tbox_port.TabIndex = 1; | |
| 52 | + // | |
| 53 | + // label1 | |
| 54 | + // | |
| 55 | + this.label1.AutoSize = true; | |
| 56 | + this.label1.Location = new System.Drawing.Point(93, 220); | |
| 57 | + this.label1.Name = "label1"; | |
| 58 | + this.label1.Size = new System.Drawing.Size(32, 15); | |
| 59 | + this.label1.TabIndex = 2; | |
| 60 | + this.label1.Text = "port"; | |
| 61 | + // | |
| 62 | + // btn_start | |
| 63 | + // | |
| 64 | + this.btn_start.Location = new System.Drawing.Point(12, 218); | |
| 65 | + this.btn_start.Name = "btn_start"; | |
| 66 | + this.btn_start.Size = new System.Drawing.Size(75, 23); | |
| 67 | + this.btn_start.TabIndex = 3; | |
| 68 | + this.btn_start.Text = "スタート"; | |
| 69 | + this.btn_start.UseVisualStyleBackColor = true; | |
| 70 | + this.btn_start.Click += new System.EventHandler(this.btn_start_Click); | |
| 71 | + // | |
| 72 | + // btn_stop | |
| 73 | + // | |
| 74 | + this.btn_stop.Location = new System.Drawing.Point(197, 218); | |
| 75 | + this.btn_stop.Name = "btn_stop"; | |
| 76 | + this.btn_stop.Size = new System.Drawing.Size(75, 23); | |
| 77 | + this.btn_stop.TabIndex = 3; | |
| 78 | + this.btn_stop.Text = "ストップ"; | |
| 79 | + this.btn_stop.UseVisualStyleBackColor = true; | |
| 80 | + this.btn_stop.Click += new System.EventHandler(this.btn_stop_Click); | |
| 81 | + // | |
| 82 | + // Form1 | |
| 83 | + // | |
| 84 | + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); | |
| 85 | + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
| 86 | + this.ClientSize = new System.Drawing.Size(283, 253); | |
| 87 | + this.Controls.Add(this.btn_stop); | |
| 88 | + this.Controls.Add(this.btn_start); | |
| 89 | + this.Controls.Add(this.label1); | |
| 90 | + this.Controls.Add(this.tbox_port); | |
| 91 | + this.Controls.Add(this.rtbox_show); | |
| 92 | + this.Name = "Form1"; | |
| 93 | + this.Text = "Form1"; | |
| 94 | + this.ResumeLayout(false); | |
| 95 | + this.PerformLayout(); | |
| 96 | + | |
| 97 | + } | |
| 98 | + | |
| 99 | + #endregion | |
| 100 | + | |
| 101 | + private System.Windows.Forms.RichTextBox rtbox_show; | |
| 102 | + private System.Windows.Forms.TextBox tbox_port; | |
| 103 | + private System.Windows.Forms.Label label1; | |
| 104 | + private System.Windows.Forms.Button btn_start; | |
| 105 | + private System.Windows.Forms.Button btn_stop; | |
| 106 | + } | |
| 107 | +} | |
| 108 | + |
| @@ -0,0 +1,121 @@ | ||
| 1 | +using System; | |
| 2 | +using System.Windows.Forms; | |
| 3 | +using System.Net; | |
| 4 | +using System.Net.Sockets; | |
| 5 | +using System.Threading; | |
| 6 | +using System.Text; | |
| 7 | + | |
| 8 | +namespace Server | |
| 9 | +{ | |
| 10 | + public partial class Form1 : Form | |
| 11 | + { | |
| 12 | + private Socket sock; | |
| 13 | + private static ManualResetEvent socketEvent = new System.Threading.ManualResetEvent(false); | |
| 14 | + private Thread tMain; | |
| 15 | + | |
| 16 | + delegate void appendTextDelegate(string text); | |
| 17 | + private void appendText(string text) | |
| 18 | + { | |
| 19 | + if (this.IsDisposed) return; | |
| 20 | + Invoke(new appendTextDelegate(rtbox_show.AppendText), text); | |
| 21 | + } | |
| 22 | + | |
| 23 | + public Form1() | |
| 24 | + { | |
| 25 | + InitializeComponent(); | |
| 26 | + } | |
| 27 | + | |
| 28 | + private void btn_start_Click(object sender, EventArgs e) | |
| 29 | + { | |
| 30 | + if (tbox_port.Text == String.Empty) | |
| 31 | + { | |
| 32 | + MessageBox.Show("portを指定してください。"); | |
| 33 | + return; | |
| 34 | + } | |
| 35 | + int port; | |
| 36 | + if (Int32.TryParse(tbox_port.Text, out port) == false) | |
| 37 | + { | |
| 38 | + MessageBox.Show("portは0~65535の数字を入力してください。"); | |
| 39 | + return; | |
| 40 | + } | |
| 41 | + if (port < 0 || 65535 < port) | |
| 42 | + { | |
| 43 | + MessageBox.Show("portは0~65535の範囲で入力してください。"); | |
| 44 | + return; | |
| 45 | + } | |
| 46 | + String hostName = Dns.GetHostName(); | |
| 47 | + IPHostEntry iPHostEntry = Dns.GetHostEntry(hostName); | |
| 48 | + IPAddress ipAddress = iPHostEntry.AddressList[0]; | |
| 49 | + sock = new Socket( | |
| 50 | + AddressFamily.InterNetwork, | |
| 51 | + SocketType.Stream, | |
| 52 | + ProtocolType.Tcp); | |
| 53 | + try | |
| 54 | + { | |
| 55 | + sock.Bind(new IPEndPoint(ipAddress, port)); | |
| 56 | + sock.Listen(10); | |
| 57 | + appendText("サーバ起動中...\r\n"); | |
| 58 | + appendText(String.Format("サーバIPアドレス:{0}\r\n",ipAddress)); | |
| 59 | + appendText(String.Format("ポート:{0}\r\n",port)); | |
| 60 | + }catch(Exception ee) | |
| 61 | + { | |
| 62 | + MessageBox.Show(ee.Message); | |
| 63 | + } | |
| 64 | + tMain = new Thread(new ThreadStart(Round)); | |
| 65 | + tMain.IsBackground = true; | |
| 66 | + tMain.Start(); | |
| 67 | + } | |
| 68 | + | |
| 69 | + private void Round() | |
| 70 | + { | |
| 71 | + while(true) | |
| 72 | + { | |
| 73 | + socketEvent.Reset(); | |
| 74 | + sock.BeginAccept(new AsyncCallback(OnConnectRequest), sock); | |
| 75 | + socketEvent.WaitOne(); | |
| 76 | + } | |
| 77 | + } | |
| 78 | + | |
| 79 | + private void OnConnectRequest(IAsyncResult ar) | |
| 80 | + { | |
| 81 | + socketEvent.Set(); | |
| 82 | + Socket listener = (Socket)ar.AsyncState; | |
| 83 | + Socket handler = listener.EndAccept(ar); | |
| 84 | + appendText(String.Format("{0} joined \r\n", handler.RemoteEndPoint)); | |
| 85 | + StateObject state = new StateObject(); | |
| 86 | + state.workSocket = handler; | |
| 87 | + handler.BeginReceive(state.buffer, 0, StateObject.BufferSize, 0, | |
| 88 | + new AsyncCallback(ReadCallback), state); | |
| 89 | + } | |
| 90 | + | |
| 91 | + private void ReadCallback(IAsyncResult ar) | |
| 92 | + { | |
| 93 | + String content = String.Empty; | |
| 94 | + StateObject state = (StateObject)ar.AsyncState; | |
| 95 | + Socket handler = state.workSocket; | |
| 96 | + int readSize = handler.EndReceive(ar); | |
| 97 | + if(readSize < 1) | |
| 98 | + { | |
| 99 | + appendText(String.Format("\r\n{0} disconnected \r\n", handler.RemoteEndPoint)); | |
| 100 | + return; | |
| 101 | + } | |
| 102 | + byte[] bb = new byte[readSize]; | |
| 103 | + Array.Copy(state.buffer, bb, readSize); | |
| 104 | + String msg = Encoding.UTF8.GetString(bb); | |
| 105 | + appendText(msg); | |
| 106 | + handler.BeginReceive(state.buffer, 0, StateObject.BufferSize, 0, | |
| 107 | + new AsyncCallback(ReadCallback), state); | |
| 108 | + } | |
| 109 | + | |
| 110 | + private void btn_stop_Click(object sender, EventArgs e) | |
| 111 | + { | |
| 112 | + try | |
| 113 | + { | |
| 114 | + sock.Close(); | |
| 115 | + }catch(Exception ee) | |
| 116 | + { | |
| 117 | + MessageBox.Show(ee.Message); | |
| 118 | + } | |
| 119 | + } | |
| 120 | + } | |
| 121 | +} |
| @@ -0,0 +1,22 @@ | ||
| 1 | +using System; | |
| 2 | +using System.Collections.Generic; | |
| 3 | +using System.Linq; | |
| 4 | +using System.Threading.Tasks; | |
| 5 | +using System.Windows.Forms; | |
| 6 | + | |
| 7 | +namespace Server | |
| 8 | +{ | |
| 9 | + static class Program | |
| 10 | + { | |
| 11 | + /// <summary> | |
| 12 | + /// アプリケーションのメイン エントリ ポイントです。 | |
| 13 | + /// </summary> | |
| 14 | + [STAThread] | |
| 15 | + static void Main() | |
| 16 | + { | |
| 17 | + Application.EnableVisualStyles(); | |
| 18 | + Application.SetCompatibleTextRenderingDefault(false); | |
| 19 | + Application.Run(new Form1()); | |
| 20 | + } | |
| 21 | + } | |
| 22 | +} |
| @@ -0,0 +1,18 @@ | ||
| 1 | +using System.Net; | |
| 2 | +using System.Net.Sockets; | |
| 3 | + | |
| 4 | + | |
| 5 | +namespace Server | |
| 6 | +{ | |
| 7 | + class StateObject | |
| 8 | + { | |
| 9 | + public Socket workSocket = null; | |
| 10 | + public const int BufferSize = 1024; | |
| 11 | + public byte[] buffer = new byte[BufferSize]; | |
| 12 | + | |
| 13 | + public StateObject() | |
| 14 | + { | |
| 15 | + | |
| 16 | + } | |
| 17 | + } | |
| 18 | +} |
| @@ -0,0 +1,71 @@ | ||
| 1 | +//------------------------------------------------------------------------------ | |
| 2 | +// <auto-generated> | |
| 3 | +// このコードはツールによって生成されました。 | |
| 4 | +// ランタイム バージョン:4.0.30319.42000 | |
| 5 | +// | |
| 6 | +// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 | |
| 7 | +// コードが再生成されるときに損失したりします | |
| 8 | +// </auto-generated> | |
| 9 | +//------------------------------------------------------------------------------ | |
| 10 | + | |
| 11 | +namespace Server.Properties | |
| 12 | +{ | |
| 13 | + | |
| 14 | + | |
| 15 | + /// <summary> | |
| 16 | + /// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。 | |
| 17 | + /// </summary> | |
| 18 | + // このクラスは StronglyTypedResourceBuilder クラスが ResGen | |
| 19 | + // または Visual Studio のようなツールを使用して自動生成されました。 | |
| 20 | + // メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に | |
| 21 | + // ResGen を実行し直すか、または VS プロジェクトをリビルドします。 | |
| 22 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] | |
| 23 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 24 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
| 25 | + internal class Resources | |
| 26 | + { | |
| 27 | + | |
| 28 | + private static global::System.Resources.ResourceManager resourceMan; | |
| 29 | + | |
| 30 | + private static global::System.Globalization.CultureInfo resourceCulture; | |
| 31 | + | |
| 32 | + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | |
| 33 | + internal Resources() | |
| 34 | + { | |
| 35 | + } | |
| 36 | + | |
| 37 | + /// <summary> | |
| 38 | + /// このクラスで使用されるキャッシュされた ResourceManager インスタンスを返します。 | |
| 39 | + /// </summary> | |
| 40 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
| 41 | + internal static global::System.Resources.ResourceManager ResourceManager | |
| 42 | + { | |
| 43 | + get | |
| 44 | + { | |
| 45 | + if ((resourceMan == null)) | |
| 46 | + { | |
| 47 | + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Server.Properties.Resources", typeof(Resources).Assembly); | |
| 48 | + resourceMan = temp; | |
| 49 | + } | |
| 50 | + return resourceMan; | |
| 51 | + } | |
| 52 | + } | |
| 53 | + | |
| 54 | + /// <summary> | |
| 55 | + /// 厳密に型指定されたこのリソース クラスを使用して、すべての検索リソースに対し、 | |
| 56 | + /// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。 | |
| 57 | + /// </summary> | |
| 58 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
| 59 | + internal static global::System.Globalization.CultureInfo Culture | |
| 60 | + { | |
| 61 | + get | |
| 62 | + { | |
| 63 | + return resourceCulture; | |
| 64 | + } | |
| 65 | + set | |
| 66 | + { | |
| 67 | + resourceCulture = value; | |
| 68 | + } | |
| 69 | + } | |
| 70 | + } | |
| 71 | +} |
| @@ -0,0 +1,36 @@ | ||
| 1 | +using System.Reflection; | |
| 2 | +using System.Runtime.CompilerServices; | |
| 3 | +using System.Runtime.InteropServices; | |
| 4 | + | |
| 5 | +// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 | |
| 6 | +// アセンブリに関連付けられている情報を変更するには、 | |
| 7 | +// これらの属性値を変更してください。 | |
| 8 | +[assembly: AssemblyTitle("Server")] | |
| 9 | +[assembly: AssemblyDescription("")] | |
| 10 | +[assembly: AssemblyConfiguration("")] | |
| 11 | +[assembly: AssemblyCompany("")] | |
| 12 | +[assembly: AssemblyProduct("Server")] | |
| 13 | +[assembly: AssemblyCopyright("Copyright © 2015")] | |
| 14 | +[assembly: AssemblyTrademark("")] | |
| 15 | +[assembly: AssemblyCulture("")] | |
| 16 | + | |
| 17 | +// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから | |
| 18 | +// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、 | |
| 19 | +// その型の ComVisible 属性を true に設定してください。 | |
| 20 | +[assembly: ComVisible(false)] | |
| 21 | + | |
| 22 | +// このプロジェクトが COM に公開される場合、次の GUID が typelib の ID になります | |
| 23 | +[assembly: Guid("0111dbab-364b-4af3-a872-36f5d3502da8")] | |
| 24 | + | |
| 25 | +// アセンブリのバージョン情報は次の 4 つの値で構成されています: | |
| 26 | +// | |
| 27 | +// メジャー バージョン | |
| 28 | +// マイナー バージョン | |
| 29 | +// ビルド番号 | |
| 30 | +// Revision | |
| 31 | +// | |
| 32 | +// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を | |
| 33 | +// 既定値にすることができます: | |
| 34 | +// [assembly: AssemblyVersion("1.0.*")] | |
| 35 | +[assembly: AssemblyVersion("1.0.0.0")] | |
| 36 | +[assembly: AssemblyFileVersion("1.0.0.0")] |
| @@ -0,0 +1,30 @@ | ||
| 1 | +//------------------------------------------------------------------------------ | |
| 2 | +// <auto-generated> | |
| 3 | +// This code was generated by a tool. | |
| 4 | +// Runtime Version:4.0.30319.42000 | |
| 5 | +// | |
| 6 | +// Changes to this file may cause incorrect behavior and will be lost if | |
| 7 | +// the code is regenerated. | |
| 8 | +// </auto-generated> | |
| 9 | +//------------------------------------------------------------------------------ | |
| 10 | + | |
| 11 | +namespace Server.Properties | |
| 12 | +{ | |
| 13 | + | |
| 14 | + | |
| 15 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
| 16 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] | |
| 17 | + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase | |
| 18 | + { | |
| 19 | + | |
| 20 | + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | |
| 21 | + | |
| 22 | + public static Settings Default | |
| 23 | + { | |
| 24 | + get | |
| 25 | + { | |
| 26 | + return defaultInstance; | |
| 27 | + } | |
| 28 | + } | |
| 29 | + } | |
| 30 | +} |
| @@ -0,0 +1,39 @@ | ||
| 1 | +namespace Client | |
| 2 | +{ | |
| 3 | + partial class Form1 | |
| 4 | + { | |
| 5 | + /// <summary> | |
| 6 | + /// 必要なデザイナー変数です。 | |
| 7 | + /// </summary> | |
| 8 | + private System.ComponentModel.IContainer components = null; | |
| 9 | + | |
| 10 | + /// <summary> | |
| 11 | + /// 使用中のリソースをすべてクリーンアップします。 | |
| 12 | + /// </summary> | |
| 13 | + /// <param name="disposing">マネージ リソースを破棄する場合は true を指定し、その他の場合は false を指定します。</param> | |
| 14 | + protected override void Dispose(bool disposing) | |
| 15 | + { | |
| 16 | + if (disposing && (components != null)) | |
| 17 | + { | |
| 18 | + components.Dispose(); | |
| 19 | + } | |
| 20 | + base.Dispose(disposing); | |
| 21 | + } | |
| 22 | + | |
| 23 | + #region Windows フォーム デザイナーで生成されたコード | |
| 24 | + | |
| 25 | + /// <summary> | |
| 26 | + /// デザイナー サポートに必要なメソッドです。このメソッドの内容を | |
| 27 | + /// コード エディターで変更しないでください。 | |
| 28 | + /// </summary> | |
| 29 | + private void InitializeComponent() | |
| 30 | + { | |
| 31 | + this.components = new System.ComponentModel.Container(); | |
| 32 | + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
| 33 | + this.Text = "Form1"; | |
| 34 | + } | |
| 35 | + | |
| 36 | + #endregion | |
| 37 | + } | |
| 38 | +} | |
| 39 | + |
| @@ -0,0 +1,20 @@ | ||
| 1 | +using System; | |
| 2 | +using System.Collections.Generic; | |
| 3 | +using System.ComponentModel; | |
| 4 | +using System.Data; | |
| 5 | +using System.Drawing; | |
| 6 | +using System.Linq; | |
| 7 | +using System.Text; | |
| 8 | +using System.Threading.Tasks; | |
| 9 | +using System.Windows.Forms; | |
| 10 | + | |
| 11 | +namespace Client | |
| 12 | +{ | |
| 13 | + public partial class Form1 : Form | |
| 14 | + { | |
| 15 | + public Form1() | |
| 16 | + { | |
| 17 | + InitializeComponent(); | |
| 18 | + } | |
| 19 | + } | |
| 20 | +} |
| @@ -0,0 +1,22 @@ | ||
| 1 | +using System; | |
| 2 | +using System.Collections.Generic; | |
| 3 | +using System.Linq; | |
| 4 | +using System.Threading.Tasks; | |
| 5 | +using System.Windows.Forms; | |
| 6 | + | |
| 7 | +namespace Client | |
| 8 | +{ | |
| 9 | + static class Program | |
| 10 | + { | |
| 11 | + /// <summary> | |
| 12 | + /// アプリケーションのメイン エントリ ポイントです。 | |
| 13 | + /// </summary> | |
| 14 | + [STAThread] | |
| 15 | + static void Main() | |
| 16 | + { | |
| 17 | + Application.EnableVisualStyles(); | |
| 18 | + Application.SetCompatibleTextRenderingDefault(false); | |
| 19 | + Application.Run(new Form1()); | |
| 20 | + } | |
| 21 | + } | |
| 22 | +} |
| @@ -0,0 +1,71 @@ | ||
| 1 | +//------------------------------------------------------------------------------ | |
| 2 | +// <auto-generated> | |
| 3 | +// このコードはツールによって生成されました。 | |
| 4 | +// ランタイム バージョン:4.0.30319.42000 | |
| 5 | +// | |
| 6 | +// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 | |
| 7 | +// コードが再生成されるときに損失したりします | |
| 8 | +// </auto-generated> | |
| 9 | +//------------------------------------------------------------------------------ | |
| 10 | + | |
| 11 | +namespace Client.Properties | |
| 12 | +{ | |
| 13 | + | |
| 14 | + | |
| 15 | + /// <summary> | |
| 16 | + /// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。 | |
| 17 | + /// </summary> | |
| 18 | + // このクラスは StronglyTypedResourceBuilder クラスが ResGen | |
| 19 | + // または Visual Studio のようなツールを使用して自動生成されました。 | |
| 20 | + // メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に | |
| 21 | + // ResGen を実行し直すか、または VS プロジェクトをリビルドします。 | |
| 22 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] | |
| 23 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 24 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
| 25 | + internal class Resources | |
| 26 | + { | |
| 27 | + | |
| 28 | + private static global::System.Resources.ResourceManager resourceMan; | |
| 29 | + | |
| 30 | + private static global::System.Globalization.CultureInfo resourceCulture; | |
| 31 | + | |
| 32 | + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | |
| 33 | + internal Resources() | |
| 34 | + { | |
| 35 | + } | |
| 36 | + | |
| 37 | + /// <summary> | |
| 38 | + /// このクラスで使用されるキャッシュされた ResourceManager インスタンスを返します。 | |
| 39 | + /// </summary> | |
| 40 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
| 41 | + internal static global::System.Resources.ResourceManager ResourceManager | |
| 42 | + { | |
| 43 | + get | |
| 44 | + { | |
| 45 | + if ((resourceMan == null)) | |
| 46 | + { | |
| 47 | + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Client.Properties.Resources", typeof(Resources).Assembly); | |
| 48 | + resourceMan = temp; | |
| 49 | + } | |
| 50 | + return resourceMan; | |
| 51 | + } | |
| 52 | + } | |
| 53 | + | |
| 54 | + /// <summary> | |
| 55 | + /// 厳密に型指定されたこのリソース クラスを使用して、すべての検索リソースに対し、 | |
| 56 | + /// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。 | |
| 57 | + /// </summary> | |
| 58 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
| 59 | + internal static global::System.Globalization.CultureInfo Culture | |
| 60 | + { | |
| 61 | + get | |
| 62 | + { | |
| 63 | + return resourceCulture; | |
| 64 | + } | |
| 65 | + set | |
| 66 | + { | |
| 67 | + resourceCulture = value; | |
| 68 | + } | |
| 69 | + } | |
| 70 | + } | |
| 71 | +} |
| @@ -0,0 +1,36 @@ | ||
| 1 | +using System.Reflection; | |
| 2 | +using System.Runtime.CompilerServices; | |
| 3 | +using System.Runtime.InteropServices; | |
| 4 | + | |
| 5 | +// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 | |
| 6 | +// アセンブリに関連付けられている情報を変更するには、 | |
| 7 | +// これらの属性値を変更してください。 | |
| 8 | +[assembly: AssemblyTitle("Client")] | |
| 9 | +[assembly: AssemblyDescription("")] | |
| 10 | +[assembly: AssemblyConfiguration("")] | |
| 11 | +[assembly: AssemblyCompany("")] | |
| 12 | +[assembly: AssemblyProduct("Client")] | |
| 13 | +[assembly: AssemblyCopyright("Copyright © 2015")] | |
| 14 | +[assembly: AssemblyTrademark("")] | |
| 15 | +[assembly: AssemblyCulture("")] | |
| 16 | + | |
| 17 | +// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから | |
| 18 | +// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、 | |
| 19 | +// その型の ComVisible 属性を true に設定してください。 | |
| 20 | +[assembly: ComVisible(false)] | |
| 21 | + | |
| 22 | +// このプロジェクトが COM に公開される場合、次の GUID が typelib の ID になります | |
| 23 | +[assembly: Guid("e80d25cc-ec87-4236-844f-0e79b384ef34")] | |
| 24 | + | |
| 25 | +// アセンブリのバージョン情報は次の 4 つの値で構成されています: | |
| 26 | +// | |
| 27 | +// メジャー バージョン | |
| 28 | +// マイナー バージョン | |
| 29 | +// ビルド番号 | |
| 30 | +// Revision | |
| 31 | +// | |
| 32 | +// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を | |
| 33 | +// 既定値にすることができます: | |
| 34 | +// [assembly: AssemblyVersion("1.0.*")] | |
| 35 | +[assembly: AssemblyVersion("1.0.0.0")] | |
| 36 | +[assembly: AssemblyFileVersion("1.0.0.0")] |
| @@ -0,0 +1,30 @@ | ||
| 1 | +//------------------------------------------------------------------------------ | |
| 2 | +// <auto-generated> | |
| 3 | +// This code was generated by a tool. | |
| 4 | +// Runtime Version:4.0.30319.42000 | |
| 5 | +// | |
| 6 | +// Changes to this file may cause incorrect behavior and will be lost if | |
| 7 | +// the code is regenerated. | |
| 8 | +// </auto-generated> | |
| 9 | +//------------------------------------------------------------------------------ | |
| 10 | + | |
| 11 | +namespace Client.Properties | |
| 12 | +{ | |
| 13 | + | |
| 14 | + | |
| 15 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
| 16 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] | |
| 17 | + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase | |
| 18 | + { | |
| 19 | + | |
| 20 | + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | |
| 21 | + | |
| 22 | + public static Settings Default | |
| 23 | + { | |
| 24 | + get | |
| 25 | + { | |
| 26 | + return defaultInstance; | |
| 27 | + } | |
| 28 | + } | |
| 29 | + } | |
| 30 | +} |