• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

OpenTweenのfork


Commit MetaInfo

修訂9aabfa99688d1ca7a6b25bf5ee07789c42dac9c5 (tree)
時間2012-02-22 19:46:14
作者Kimura Youichi <kim.upsilon@bucy...>
CommiterKimura Youichi

Log Message

Port OpenURL.vb to C#

Change Summary

差異

--- a/Tween/OpenURL.Designer.vb
+++ /dev/null
@@ -1,95 +0,0 @@
1-Option Strict On
2-<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
3-Partial Class OpenURL
4- Inherits System.Windows.Forms.Form
5-
6- 'フォームがコンポーネントの一覧をクリーンアップするために dispose をオーバーライドします。
7- <System.Diagnostics.DebuggerNonUserCode()> _
8- Protected Overrides Sub Dispose(ByVal disposing As Boolean)
9- Try
10- If disposing AndAlso components IsNot Nothing Then
11- components.Dispose()
12- End If
13- Finally
14- MyBase.Dispose(disposing)
15- End Try
16- End Sub
17-
18- 'Windows フォーム デザイナで必要です。
19- Private components As System.ComponentModel.IContainer
20-
21- 'メモ: 以下のプロシージャは Windows フォーム デザイナで必要です。
22- 'Windows フォーム デザイナを使用して変更できます。
23- 'コード エディタを使って変更しないでください。
24- <System.Diagnostics.DebuggerStepThrough()> _
25- Private Sub InitializeComponent()
26- Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(OpenURL))
27- Me.TableLayoutPanel2 = New System.Windows.Forms.TableLayoutPanel()
28- Me.TableLayoutPanel1 = New System.Windows.Forms.TableLayoutPanel()
29- Me.OK_Button = New System.Windows.Forms.Button()
30- Me.Cancel_Button = New System.Windows.Forms.Button()
31- Me.UrlList = New System.Windows.Forms.ListBox()
32- Me.TableLayoutPanel2.SuspendLayout()
33- Me.TableLayoutPanel1.SuspendLayout()
34- Me.SuspendLayout()
35- '
36- 'TableLayoutPanel2
37- '
38- resources.ApplyResources(Me.TableLayoutPanel2, "TableLayoutPanel2")
39- Me.TableLayoutPanel2.Controls.Add(Me.TableLayoutPanel1, 0, 1)
40- Me.TableLayoutPanel2.Controls.Add(Me.UrlList, 0, 0)
41- Me.TableLayoutPanel2.Name = "TableLayoutPanel2"
42- '
43- 'TableLayoutPanel1
44- '
45- resources.ApplyResources(Me.TableLayoutPanel1, "TableLayoutPanel1")
46- Me.TableLayoutPanel1.Controls.Add(Me.OK_Button, 0, 0)
47- Me.TableLayoutPanel1.Controls.Add(Me.Cancel_Button, 1, 0)
48- Me.TableLayoutPanel1.Name = "TableLayoutPanel1"
49- '
50- 'OK_Button
51- '
52- resources.ApplyResources(Me.OK_Button, "OK_Button")
53- Me.OK_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel
54- Me.OK_Button.Name = "OK_Button"
55- '
56- 'Cancel_Button
57- '
58- resources.ApplyResources(Me.Cancel_Button, "Cancel_Button")
59- Me.Cancel_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel
60- Me.Cancel_Button.Name = "Cancel_Button"
61- '
62- 'UrlList
63- '
64- Me.UrlList.DisplayMember = "Text"
65- resources.ApplyResources(Me.UrlList, "UrlList")
66- Me.UrlList.FormattingEnabled = True
67- Me.UrlList.Name = "UrlList"
68- Me.UrlList.ValueMember = "Url"
69- '
70- 'OpenURL
71- '
72- Me.AcceptButton = Me.OK_Button
73- resources.ApplyResources(Me, "$this")
74- Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
75- Me.CancelButton = Me.Cancel_Button
76- Me.ControlBox = False
77- Me.Controls.Add(Me.TableLayoutPanel2)
78- Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
79- Me.MaximizeBox = False
80- Me.MinimizeBox = False
81- Me.Name = "OpenURL"
82- Me.ShowInTaskbar = False
83- Me.TopMost = True
84- Me.TableLayoutPanel2.ResumeLayout(False)
85- Me.TableLayoutPanel1.ResumeLayout(False)
86- Me.ResumeLayout(False)
87-
88- End Sub
89- Friend WithEvents TableLayoutPanel2 As System.Windows.Forms.TableLayoutPanel
90- Friend WithEvents TableLayoutPanel1 As System.Windows.Forms.TableLayoutPanel
91- Friend WithEvents OK_Button As System.Windows.Forms.Button
92- Friend WithEvents Cancel_Button As System.Windows.Forms.Button
93- Friend WithEvents UrlList As System.Windows.Forms.ListBox
94-
95-End Class
--- a/Tween/OpenURL.vb
+++ /dev/null
@@ -1,143 +0,0 @@
1-' Tween - Client of Twitter
2-' Copyright (c) 2007-2011 kiri_feather (@kiri_feather) <kiri.feather@gmail.com>
3-' (c) 2008-2011 Moz (@syo68k)
4-' (c) 2008-2011 takeshik (@takeshik) <http://www.takeshik.org/>
5-' (c) 2010-2011 anis774 (@anis774) <http://d.hatena.ne.jp/anis774/>
6-' (c) 2010-2011 fantasticswallow (@f_swallow) <http://twitter.com/f_swallow>
7-' All rights reserved.
8-'
9-' This file is part of Tween.
10-'
11-' This program is free software; you can redistribute it and/or modify it
12-' under the terms of the GNU General Public License as published by the Free
13-' Software Foundation; either version 3 of the License, or (at your option)
14-' any later version.
15-'
16-' This program is distributed in the hope that it will be useful, but
17-' WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18-' or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19-' for more details.
20-'
21-' You should have received a copy of the GNU General Public License along
22-' with this program. If not, see <http://www.gnu.org/licenses/>, or write to
23-' the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
24-' Boston, MA 02110-1301, USA.
25-
26-Imports System.Windows.Forms
27-Imports System.Text
28-
29-Public Class OpenURL
30-
31- Private _selUrl As String
32-
33- Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
34- If UrlList.SelectedItems.Count = 0 Then
35- Me.DialogResult = Windows.Forms.DialogResult.Cancel
36- Else
37- _selUrl = UrlList.SelectedItem.ToString()
38- Me.DialogResult = System.Windows.Forms.DialogResult.OK
39- End If
40- Me.Close()
41- End Sub
42-
43- Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
44- Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
45- Me.Close()
46- End Sub
47-
48- Public Sub ClearUrl()
49- UrlList.Items.Clear()
50- End Sub
51-
52- Public Sub AddUrl(ByVal openUrlItem As OpenUrlItem)
53- UrlList.Items.Add(openUrlItem)
54- End Sub
55-
56- Public ReadOnly Property SelectedUrl() As String
57- Get
58- If UrlList.SelectedItems.Count = 1 Then
59- Return _selUrl
60- Else
61- Return ""
62- End If
63- End Get
64- End Property
65-
66- Private Sub OpenURL_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
67- UrlList.Focus()
68- If UrlList.Items.Count > 0 Then
69- UrlList.SelectedIndex = 0
70- End If
71- End Sub
72-
73- Private Sub UrlList_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UrlList.DoubleClick
74- If UrlList.SelectedItem Is Nothing Then
75- Exit Sub
76- End If
77-
78- If UrlList.IndexFromPoint(UrlList.PointToClient(Control.MousePosition)) = ListBox.NoMatches Then
79- Exit Sub
80- End If
81-
82- If UrlList.Items(UrlList.IndexFromPoint(UrlList.PointToClient(Control.MousePosition))) Is Nothing Then
83- Exit Sub
84- End If
85- OK_Button_Click(sender, e)
86- End Sub
87-
88- Private Sub UrlList_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles UrlList.KeyDown
89- If e.KeyCode = Keys.J AndAlso UrlList.SelectedIndex < UrlList.Items.Count - 1 Then
90- e.SuppressKeyPress = True
91- UrlList.SelectedIndex += 1
92- End If
93- If e.KeyCode = Keys.K AndAlso UrlList.SelectedIndex > 0 Then
94- e.SuppressKeyPress = True
95- UrlList.SelectedIndex -= 1
96- End If
97- If e.Control AndAlso e.KeyCode = Keys.Oem4 Then
98- e.SuppressKeyPress = True
99- Cancel_Button_Click(Nothing, Nothing)
100- End If
101- End Sub
102-End Class
103-
104-Public Class OpenUrlItem
105- Private _url As String
106- Private _linkText As String
107- Private _href As String
108-
109- Public Sub New(ByVal linkText As String, ByVal url As String, ByVal href As String)
110- Me._linkText = linkText
111- Me._url = url
112- Me._href = href
113- End Sub
114-
115- Public ReadOnly Property Text() As String
116- Get
117- If Me._linkText.StartsWith("@") OrElse Me._linkText.StartsWith("@") OrElse Me._linkText.StartsWith("#") OrElse Me._linkText.StartsWith("#") Then
118- Return Me._linkText
119- End If
120- If Me._linkText.TrimEnd("/"c) = Me._url.TrimEnd("/"c) Then
121- Return Me._url
122- Else
123- Return Me._linkText + " >>> " + Me.Url
124- End If
125- End Get
126- End Property
127-
128- Public ReadOnly Property Url() As String
129- Get
130- Return Me._url
131- End Get
132- End Property
133-
134- Public Overrides Function ToString() As String
135- Return Me._href
136- End Function
137-
138- Public ReadOnly Property Href As String
139- Get
140- Return Me._href
141- End Get
142- End Property
143-End Class
--- a/Tween/Tween.vbproj
+++ b/Tween/Tween.vbproj
@@ -233,12 +233,6 @@
233233 </Compile>
234234 <Compile Include="MySpecialPath.vb" />
235235 <Compile Include="nicoms.vb" />
236- <Compile Include="OpenURL.Designer.vb">
237- <DependentUpon>OpenURL.vb</DependentUpon>
238- </Compile>
239- <Compile Include="OpenURL.vb">
240- <SubType>Form</SubType>
241- </Compile>
242236 <Compile Include="Outputz.vb" />
243237 <Compile Include="PictureBoxEx.vb">
244238 <SubType>Component</SubType>
@@ -407,18 +401,6 @@
407401 <EmbeddedResource Include="MyLists.zh-CHS.resx">
408402 <DependentUpon>MyLists.vb</DependentUpon>
409403 </EmbeddedResource>
410- <EmbeddedResource Include="OpenURL.en.resx">
411- <DependentUpon>OpenURL.vb</DependentUpon>
412- <SubType>Designer</SubType>
413- </EmbeddedResource>
414- <EmbeddedResource Include="OpenURL.resx">
415- <SubType>Designer</SubType>
416- <DependentUpon>OpenURL.vb</DependentUpon>
417- </EmbeddedResource>
418- <EmbeddedResource Include="OpenURL.zh-CHS.resx">
419- <DependentUpon>OpenURL.vb</DependentUpon>
420- <SubType>Designer</SubType>
421- </EmbeddedResource>
422404 <EmbeddedResource Include="FilterDialog.en.resx">
423405 <DependentUpon>FilterDialog.vb</DependentUpon>
424406 <SubType>Designer</SubType>
--- /dev/null
+++ b/TweenCS/OpenURL.Designer.cs
@@ -0,0 +1,108 @@
1+namespace Tween
2+{
3+ partial class OpenURL
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+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OpenURL));
32+ this.OK_Button = new System.Windows.Forms.Button();
33+ this.TableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
34+ this.TableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
35+ this.Cancel_Button = new System.Windows.Forms.Button();
36+ this.UrlList = new System.Windows.Forms.ListBox();
37+ this.TableLayoutPanel2.SuspendLayout();
38+ this.TableLayoutPanel1.SuspendLayout();
39+ this.SuspendLayout();
40+ //
41+ // OK_Button
42+ //
43+ resources.ApplyResources(this.OK_Button, "OK_Button");
44+ this.OK_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel;
45+ this.OK_Button.Name = "OK_Button";
46+ this.OK_Button.Click += new System.EventHandler(this.OK_Button_Click);
47+ //
48+ // TableLayoutPanel2
49+ //
50+ resources.ApplyResources(this.TableLayoutPanel2, "TableLayoutPanel2");
51+ this.TableLayoutPanel2.Controls.Add(this.TableLayoutPanel1, 0, 1);
52+ this.TableLayoutPanel2.Controls.Add(this.UrlList, 0, 0);
53+ this.TableLayoutPanel2.Name = "TableLayoutPanel2";
54+ //
55+ // TableLayoutPanel1
56+ //
57+ resources.ApplyResources(this.TableLayoutPanel1, "TableLayoutPanel1");
58+ this.TableLayoutPanel1.Controls.Add(this.OK_Button, 0, 0);
59+ this.TableLayoutPanel1.Controls.Add(this.Cancel_Button, 1, 0);
60+ this.TableLayoutPanel1.Name = "TableLayoutPanel1";
61+ //
62+ // Cancel_Button
63+ //
64+ resources.ApplyResources(this.Cancel_Button, "Cancel_Button");
65+ this.Cancel_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel;
66+ this.Cancel_Button.Name = "Cancel_Button";
67+ this.Cancel_Button.Click += new System.EventHandler(this.Cancel_Button_Click);
68+ //
69+ // UrlList
70+ //
71+ this.UrlList.DisplayMember = "Text";
72+ resources.ApplyResources(this.UrlList, "UrlList");
73+ this.UrlList.FormattingEnabled = true;
74+ this.UrlList.Name = "UrlList";
75+ this.UrlList.ValueMember = "Url";
76+ this.UrlList.DoubleClick += new System.EventHandler(this.UrlList_DoubleClick);
77+ this.UrlList.KeyDown += new System.Windows.Forms.KeyEventHandler(this.UrlList_KeyDown);
78+ //
79+ // OpenURL
80+ //
81+ this.AcceptButton = this.OK_Button;
82+ resources.ApplyResources(this, "$this");
83+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
84+ this.CancelButton = this.Cancel_Button;
85+ this.ControlBox = false;
86+ this.Controls.Add(this.TableLayoutPanel2);
87+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
88+ this.MaximizeBox = false;
89+ this.MinimizeBox = false;
90+ this.Name = "OpenURL";
91+ this.ShowInTaskbar = false;
92+ this.TopMost = true;
93+ this.Shown += new System.EventHandler(this.OpenURL_Shown);
94+ this.TableLayoutPanel2.ResumeLayout(false);
95+ this.TableLayoutPanel1.ResumeLayout(false);
96+ this.ResumeLayout(false);
97+
98+ }
99+
100+ #endregion
101+
102+ internal System.Windows.Forms.Button OK_Button;
103+ internal System.Windows.Forms.TableLayoutPanel TableLayoutPanel2;
104+ internal System.Windows.Forms.TableLayoutPanel TableLayoutPanel1;
105+ internal System.Windows.Forms.Button Cancel_Button;
106+ internal System.Windows.Forms.ListBox UrlList;
107+ }
108+}
\ No newline at end of file
--- /dev/null
+++ b/TweenCS/OpenURL.cs
@@ -0,0 +1,160 @@
1+// Tween - Client of Twitter
2+// Copyright (c) 2007-2011 kiri_feather (@kiri_feather) <kiri.feather@gmail.com>
3+// (c) 2008-2011 Moz (@syo68k)
4+// (c) 2008-2011 takeshik (@takeshik) <http://www.takeshik.org/>
5+// (c) 2010-2011 anis774 (@anis774) <http://d.hatena.ne.jp/anis774/>
6+// (c) 2010-2011 fantasticswallow (@f_swallow) <http://twitter.com/f_swallow>
7+// (c) 2011 kim_upsilon (@kim_upsilon) <https://upsilo.net/~upsilon/>
8+// All rights reserved.
9+//
10+// This file is part of Tween.
11+//
12+// This program is free software; you can redistribute it and/or modify it
13+// under the terms of the GNU General Public License as published by the Free
14+// Software Foundation; either version 3 of the License, or (at your option)
15+// any later version.
16+//
17+// This program is distributed in the hope that it will be useful, but
18+// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19+// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20+// for more details.
21+//
22+// You should have received a copy of the GNU General Public License along
23+// with this program. If not, see <http://www.gnu.org/licenses/>, or write to
24+// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
25+// Boston, MA 02110-1301, USA.
26+
27+using System;
28+using System.Collections.Generic;
29+using System.ComponentModel;
30+using System.Data;
31+using System.Drawing;
32+using System.Linq;
33+using System.Text;
34+using System.Windows.Forms;
35+
36+namespace Tween
37+{
38+ public partial class OpenURL : Form
39+ {
40+ private string _selUrl;
41+
42+ public OpenURL()
43+ {
44+ InitializeComponent();
45+ }
46+
47+ private void OK_Button_Click(object sender, EventArgs e)
48+ {
49+ if (UrlList.SelectedItems.Count == 0)
50+ {
51+ this.DialogResult = DialogResult.Cancel;
52+ }
53+ else
54+ {
55+ _selUrl = UrlList.SelectedItem.ToString();
56+ this.DialogResult = DialogResult.OK;
57+ }
58+ this.Close();
59+ }
60+
61+ private void Cancel_Button_Click(object sender, EventArgs e)
62+ {
63+ this.DialogResult = DialogResult.Cancel;
64+ this.Close();
65+ }
66+
67+ public void ClearUrl()
68+ {
69+ UrlList.Items.Clear();
70+ }
71+
72+ public void AddUrl(OpenUrlItem openUrlItem)
73+ {
74+ UrlList.Items.Add(openUrlItem);
75+ }
76+
77+ public string SelectedUrl
78+ {
79+ get
80+ {
81+ if (UrlList.SelectedItems.Count == 1)
82+ return _selUrl;
83+ else
84+ return "";
85+ }
86+ }
87+
88+ private void OpenURL_Shown(object sender, EventArgs e)
89+ {
90+ UrlList.Focus();
91+ if (UrlList.Items.Count > 0)
92+ UrlList.SelectedIndex = 0;
93+ }
94+
95+ private void UrlList_DoubleClick(object sender, EventArgs e)
96+ {
97+ if (UrlList.SelectedItem == null)
98+ return;
99+
100+ if (UrlList.IndexFromPoint(UrlList.PointToClient(Control.MousePosition)) == ListBox.NoMatches)
101+ return;
102+
103+ if (UrlList.Items[UrlList.IndexFromPoint(UrlList.PointToClient(Control.MousePosition))] == null)
104+ return;
105+ OK_Button_Click(sender, e);
106+ }
107+
108+ private void UrlList_KeyDown(object sender, KeyEventArgs e)
109+ {
110+ if (e.KeyCode == Keys.J && UrlList.SelectedIndex < UrlList.Items.Count - 1)
111+ {
112+ e.SuppressKeyPress = true;
113+ UrlList.SelectedIndex += 1;
114+ }
115+ if (e.KeyCode == Keys.K && UrlList.SelectedIndex > 0)
116+ {
117+ e.SuppressKeyPress = true;
118+ UrlList.SelectedIndex -= 1;
119+ }
120+ if (e.Control && e.KeyCode == Keys.Oem4)
121+ {
122+ e.SuppressKeyPress = true;
123+ Cancel_Button_Click(null, null);
124+ }
125+ }
126+ }
127+
128+ public class OpenUrlItem
129+ {
130+ private string _linkText;
131+
132+ public OpenUrlItem(string linkText, string url, string href)
133+ {
134+ this._linkText = linkText;
135+ this.Url = url;
136+ this.Href = href;
137+ }
138+
139+ public string Text
140+ {
141+ get
142+ {
143+ if (this._linkText.StartsWith("@") || this._linkText.StartsWith("@") || this._linkText.StartsWith("#") || this._linkText.StartsWith("#"))
144+ return this._linkText;
145+ if (this._linkText.TrimEnd('/') == this.Url.TrimEnd('/'))
146+ return this.Url;
147+ else
148+ return this._linkText + " >>> " + this.Url;
149+ }
150+ }
151+
152+ public override string ToString()
153+ {
154+ return this.Href;
155+ }
156+
157+ public string Url { get; private set; }
158+ public string Href { get; private set; }
159+ }
160+}
--- a/Tween/OpenURL.resx
+++ b/TweenCS/OpenURL.resx
@@ -112,32 +112,23 @@
112112 <value>2.0</value>
113113 </resheader>
114114 <resheader name="reader">
115- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
115+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116116 </resheader>
117117 <resheader name="writer">
118- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
118+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119 </resheader>
120- <assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
121- <data name="TableLayoutPanel2.ColumnCount" type="System.Int32, mscorlib">
122- <value>1</value>
123- </data>
124- <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
125- <data name="TableLayoutPanel1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
126- <value>Bottom, Right</value>
127- </data>
128- <data name="TableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
129- <value>2</value>
130- </data>
120+ <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
131121 <data name="OK_Button.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
132122 <value>None</value>
133123 </data>
134- <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
124+ <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
135125 <data name="OK_Button.Location" type="System.Drawing.Point, System.Drawing">
136126 <value>3, 3</value>
137127 </data>
138128 <data name="OK_Button.Size" type="System.Drawing.Size, System.Drawing">
139129 <value>67, 21</value>
140130 </data>
131+ <assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
141132 <data name="OK_Button.TabIndex" type="System.Int32, mscorlib">
142133 <value>0</value>
143134 </data>
@@ -148,7 +139,7 @@
148139 <value>OK_Button</value>
149140 </data>
150141 <data name="&gt;&gt;OK_Button.Type" xml:space="preserve">
151- <value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
142+ <value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
152143 </data>
153144 <data name="&gt;&gt;OK_Button.Parent" xml:space="preserve">
154145 <value>TableLayoutPanel1</value>
@@ -156,26 +147,20 @@
156147 <data name="&gt;&gt;OK_Button.ZOrder" xml:space="preserve">
157148 <value>0</value>
158149 </data>
159- <data name="Cancel_Button.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
160- <value>None</value>
161- </data>
162- <data name="Cancel_Button.Location" type="System.Drawing.Point, System.Drawing">
163- <value>76, 3</value>
164- </data>
165- <data name="Cancel_Button.Size" type="System.Drawing.Size, System.Drawing">
166- <value>67, 21</value>
167- </data>
168- <data name="Cancel_Button.TabIndex" type="System.Int32, mscorlib">
150+ <data name="TableLayoutPanel2.ColumnCount" type="System.Int32, mscorlib">
169151 <value>1</value>
170152 </data>
171- <data name="Cancel_Button.Text" xml:space="preserve">
172- <value>キャンセル</value>
153+ <data name="TableLayoutPanel1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
154+ <value>Bottom, Right</value>
155+ </data>
156+ <data name="TableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
157+ <value>2</value>
173158 </data>
174159 <data name="&gt;&gt;Cancel_Button.Name" xml:space="preserve">
175160 <value>Cancel_Button</value>
176161 </data>
177162 <data name="&gt;&gt;Cancel_Button.Type" xml:space="preserve">
178- <value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
163+ <value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
179164 </data>
180165 <data name="&gt;&gt;Cancel_Button.Parent" xml:space="preserve">
181166 <value>TableLayoutPanel1</value>
@@ -199,7 +184,7 @@
199184 <value>TableLayoutPanel1</value>
200185 </data>
201186 <data name="&gt;&gt;TableLayoutPanel1.Type" xml:space="preserve">
202- <value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
187+ <value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
203188 </data>
204189 <data name="&gt;&gt;TableLayoutPanel1.Parent" xml:space="preserve">
205190 <value>TableLayoutPanel2</value>
@@ -232,7 +217,7 @@
232217 <value>UrlList</value>
233218 </data>
234219 <data name="&gt;&gt;UrlList.Type" xml:space="preserve">
235- <value>System.Windows.Forms.ListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
220+ <value>System.Windows.Forms.ListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
236221 </data>
237222 <data name="&gt;&gt;UrlList.Parent" xml:space="preserve">
238223 <value>TableLayoutPanel2</value>
@@ -259,7 +244,7 @@
259244 <value>TableLayoutPanel2</value>
260245 </data>
261246 <data name="&gt;&gt;TableLayoutPanel2.Type" xml:space="preserve">
262- <value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
247+ <value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
263248 </data>
264249 <data name="&gt;&gt;TableLayoutPanel2.Parent" xml:space="preserve">
265250 <value>$this</value>
@@ -270,7 +255,34 @@
270255 <data name="TableLayoutPanel2.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
271256 <value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="TableLayoutPanel1" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="UrlList" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="Percent,100" /&gt;&lt;Rows Styles="Percent,100,Absolute,40" /&gt;&lt;/TableLayoutSettings&gt;</value>
272257 </data>
273- <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
258+ <data name="Cancel_Button.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
259+ <value>None</value>
260+ </data>
261+ <data name="Cancel_Button.Location" type="System.Drawing.Point, System.Drawing">
262+ <value>76, 3</value>
263+ </data>
264+ <data name="Cancel_Button.Size" type="System.Drawing.Size, System.Drawing">
265+ <value>67, 21</value>
266+ </data>
267+ <data name="Cancel_Button.TabIndex" type="System.Int32, mscorlib">
268+ <value>1</value>
269+ </data>
270+ <data name="Cancel_Button.Text" xml:space="preserve">
271+ <value>キャンセル</value>
272+ </data>
273+ <data name="&gt;&gt;Cancel_Button.Name" xml:space="preserve">
274+ <value>Cancel_Button</value>
275+ </data>
276+ <data name="&gt;&gt;Cancel_Button.Type" xml:space="preserve">
277+ <value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
278+ </data>
279+ <data name="&gt;&gt;Cancel_Button.Parent" xml:space="preserve">
280+ <value>TableLayoutPanel1</value>
281+ </data>
282+ <data name="&gt;&gt;Cancel_Button.ZOrder" xml:space="preserve">
283+ <value>1</value>
284+ </data>
285+ <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
274286 <value>True</value>
275287 </metadata>
276288 <data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
@@ -295,6 +307,6 @@
295307 <value>OpenURL</value>
296308 </data>
297309 <data name="&gt;&gt;$this.Type" xml:space="preserve">
298- <value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
310+ <value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
299311 </data>
300312 </root>
\ No newline at end of file
--- a/TweenCS/TweenCS.csproj
+++ b/TweenCS/TweenCS.csproj
@@ -49,6 +49,12 @@
4949 <Compile Include="Connection\IHttpConnection.cs" />
5050 <Compile Include="Connection\IMultimediaShareService.cs" />
5151 <Compile Include="MyCommon.cs" />
52+ <Compile Include="OpenURL.cs">
53+ <SubType>Form</SubType>
54+ </Compile>
55+ <Compile Include="OpenURL.Designer.cs">
56+ <DependentUpon>OpenURL.cs</DependentUpon>
57+ </Compile>
5258 <Compile Include="Properties\AssemblyInfo.cs" />
5359 <Compile Include="Properties\Resources.Designer.cs">
5460 <AutoGen>True</AutoGen>
@@ -74,6 +80,15 @@
7480 <Compile Include="Connection\HttpConnection.cs" />
7581 </ItemGroup>
7682 <ItemGroup>
83+ <EmbeddedResource Include="OpenURL.en.resx">
84+ <DependentUpon>OpenURL.cs</DependentUpon>
85+ </EmbeddedResource>
86+ <EmbeddedResource Include="OpenURL.resx">
87+ <DependentUpon>OpenURL.cs</DependentUpon>
88+ </EmbeddedResource>
89+ <EmbeddedResource Include="OpenURL.zh-CHS.resx">
90+ <DependentUpon>OpenURL.cs</DependentUpon>
91+ </EmbeddedResource>
7792 <EmbeddedResource Include="Properties\Resources.resx">
7893 <Generator>ResXFileCodeGenerator</Generator>
7994 <LastGenOutput>Resources.Designer.cs</LastGenOutput>