OSDN Git Service

Port SettingTabs.vb to C#
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 25 Dec 2011 17:57:27 +0000 (02:57 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Wed, 22 Feb 2012 11:06:46 +0000 (20:06 +0900)
Tween/Setting/SettingTabs.vb [deleted file]
Tween/Tween.vbproj
TweenCS/Setting/SettingTabs.cs [new file with mode: 0644]
TweenCS/TweenCS.csproj

diff --git a/Tween/Setting/SettingTabs.vb b/Tween/Setting/SettingTabs.vb
deleted file mode 100644 (file)
index fedabb7..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-' Tween - Client of Twitter
-' Copyright (c) 2007-2011 kiri_feather (@kiri_feather) <kiri.feather@gmail.com>
-'           (c) 2008-2011 Moz (@syo68k)
-'           (c) 2008-2011 takeshik (@takeshik) <http://www.takeshik.org/>
-'           (c) 2010-2011 anis774 (@anis774) <http://d.hatena.ne.jp/anis774/>
-'           (c) 2010-2011 fantasticswallow (@f_swallow) <http://twitter.com/f_swallow>
-' All rights reserved.
-' 
-' This file is part of Tween.
-' 
-' This program is free software; you can redistribute it and/or modify it
-' under the terms of the GNU General Public License as published by the Free
-' Software Foundation; either version 3 of the License, or (at your option)
-' any later version.
-' 
-' This program is distributed in the hope that it will be useful, but
-' WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-' or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-' for more details. 
-' 
-' You should have received a copy of the GNU General Public License along
-' with this program. If not, see <http://www.gnu.org/licenses/>, or write to
-' the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
-' Boston, MA 02110-1301, USA.
-
-<Serializable()> _
-Public Class SettingTabs
-    Inherits SettingBase(Of SettingTabs)
-#Region "Settingクラス基本"
-    Public Shared Function Load() As SettingTabs
-        Dim setting As SettingTabs = LoadSettings("")
-        Return setting
-    End Function
-
-    Public Sub Save()
-        SaveSettings(Me)
-    End Sub
-
-    Public Sub New()
-        Tabs = New List(Of TabClass)
-    End Sub
-
-#End Region
-
-    Public Tabs As List(Of TabClass)
-
-End Class
index 1c105ac..00bda8a 100644 (file)
     <Compile Include="MyLists.vb">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Setting\SettingTabs.vb" />
     <Compile Include="ShowUserInfo.Designer.vb">
       <DependentUpon>ShowUserInfo.vb</DependentUpon>
     </Compile>
diff --git a/TweenCS/Setting/SettingTabs.cs b/TweenCS/Setting/SettingTabs.cs
new file mode 100644 (file)
index 0000000..c9b9dd1
--- /dev/null
@@ -0,0 +1,57 @@
+// Tween - Client of Twitter
+// Copyright (c) 2007-2011 kiri_feather (@kiri_feather) <kiri.feather@gmail.com>
+//           (c) 2008-2011 Moz (@syo68k)
+//           (c) 2008-2011 takeshik (@takeshik) <http://www.takeshik.org/>
+//           (c) 2010-2011 anis774 (@anis774) <http://d.hatena.ne.jp/anis774/>
+//           (c) 2010-2011 fantasticswallow (@f_swallow) <http://twitter.com/f_swallow>
+//           (c) 2011      kim_upsilon (@kim_upsilon) <https://upsilo.net/~upsilon/>
+// All rights reserved.
+// 
+// This file is part of Tween.
+// 
+// This program is free software; you can redistribute it and/or modify it
+// under the terms of the GNU General Public License as published by the Free
+// Software Foundation; either version 3 of the License, or (at your option)
+// any later version.
+// 
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+// for more details. 
+// 
+// You should have received a copy of the GNU General Public License along
+// with this program. If not, see <http://www.gnu.org/licenses/>, or write to
+// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
+// Boston, MA 02110-1301, USA.
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Tween
+{
+    [Serializable]
+    public class SettingTabs : SettingBase<SettingTabs>
+    {
+#region Settingクラス基本
+        public static SettingTabs Load()
+        {
+            SettingTabs setting = LoadSettings("");
+            return setting;
+        }
+
+        public void Save()
+        {
+            SaveSettings(this);
+        }
+
+        public SettingTabs()
+        {
+            Tabs = new List<TabClass>();
+        }
+#endregion
+
+        public List<TabClass> Tabs;
+    }
+}
index 0fe4fe7..d05af64 100644 (file)
     <Compile Include="Setting\SettingBase.cs" />
     <Compile Include="Setting\SettingCommon.cs" />
     <Compile Include="Setting\SettingFollower.cs" />
+    <Compile Include="Setting\SettingTabs.cs" />
     <Compile Include="Setting\SettingLocal.cs" />
     <Compile Include="ShieldIcon.cs" />
     <Compile Include="ShortUrl.cs" />