OpenTweenのfork
修訂 | 304c1eaaba90239c94cb9f19231f403292df8d81 (tree) |
---|---|
時間 | 2012-02-22 19:47:44 |
作者 | Kimura Youichi <kim.upsilon@bucy...> |
Commiter | Kimura Youichi |
Port PictureBoxEx.vb to C#
@@ -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 |
@@ -233,9 +233,6 @@ | ||
233 | 233 | <Compile Include="MySpecialPath.vb" /> |
234 | 234 | <Compile Include="nicoms.vb" /> |
235 | 235 | <Compile Include="Outputz.vb" /> |
236 | - <Compile Include="PictureBoxEx.vb"> | |
237 | - <SubType>Component</SubType> | |
238 | - </Compile> | |
239 | 236 | <Compile Include="RadixConvert.vb" /> |
240 | 237 | <Compile Include="Setting\SettingAtIdList.vb" /> |
241 | 238 | <Compile Include="Setting\SettingBase.vb" /> |
@@ -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 | +} |
@@ -56,6 +56,9 @@ | ||
56 | 56 | <Compile Include="OpenURL.Designer.cs"> |
57 | 57 | <DependentUpon>OpenURL.cs</DependentUpon> |
58 | 58 | </Compile> |
59 | + <Compile Include="PictureBoxEx.cs"> | |
60 | + <SubType>Component</SubType> | |
61 | + </Compile> | |
59 | 62 | <Compile Include="Properties\AssemblyInfo.cs" /> |
60 | 63 | <Compile Include="Properties\Resources.Designer.cs"> |
61 | 64 | <AutoGen>True</AutoGen> |