• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

OpenTweenのfork


Commit MetaInfo

修訂304c1eaaba90239c94cb9f19231f403292df8d81 (tree)
時間2012-02-22 19:47:44
作者Kimura Youichi <kim.upsilon@bucy...>
CommiterKimura Youichi

Log Message

Port PictureBoxEx.vb to C#

Change Summary

差異

--- a/Tween/PictureBoxEx.vb
+++ /dev/null
@@ -1,12 +0,0 @@
1-Namespace TweenCustomControl
2- Public Class PictureBoxEx
3- Inherits PictureBox
4- Protected Overrides Sub OnPaint(ByVal pe As System.Windows.Forms.PaintEventArgs)
5- Try
6- MyBase.OnPaint(pe)
7- Catch ex As OutOfMemoryException
8-
9- End Try
10- End Sub
11- End Class
12-End Namespace
\ No newline at end of file
--- a/Tween/Tween.vbproj
+++ b/Tween/Tween.vbproj
@@ -233,9 +233,6 @@
233233 <Compile Include="MySpecialPath.vb" />
234234 <Compile Include="nicoms.vb" />
235235 <Compile Include="Outputz.vb" />
236- <Compile Include="PictureBoxEx.vb">
237- <SubType>Component</SubType>
238- </Compile>
239236 <Compile Include="RadixConvert.vb" />
240237 <Compile Include="Setting\SettingAtIdList.vb" />
241238 <Compile Include="Setting\SettingBase.vb" />
--- /dev/null
+++ b/TweenCS/PictureBoxEx.cs
@@ -0,0 +1,48 @@
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.Linq;
30+using System.Text;
31+using System.Windows.Forms;
32+
33+namespace Tween.TweenCustomControl
34+{
35+ public class PictureBoxEx : PictureBox
36+ {
37+ protected override void OnPaint(PaintEventArgs pe)
38+ {
39+ try
40+ {
41+ base.OnPaint(pe);
42+ }
43+ catch (OutOfMemoryException)
44+ {
45+ }
46+ }
47+ }
48+}
--- a/TweenCS/TweenCS.csproj
+++ b/TweenCS/TweenCS.csproj
@@ -56,6 +56,9 @@
5656 <Compile Include="OpenURL.Designer.cs">
5757 <DependentUpon>OpenURL.cs</DependentUpon>
5858 </Compile>
59+ <Compile Include="PictureBoxEx.cs">
60+ <SubType>Component</SubType>
61+ </Compile>
5962 <Compile Include="Properties\AssemblyInfo.cs" />
6063 <Compile Include="Properties\Resources.Designer.cs">
6164 <AutoGen>True</AutoGen>