1 ' Tween - Client of Twitter
2 ' Copyright (c) 2007-2009 kiri_feather (@kiri_feather) <kiri_feather@gmail.com>
3 ' (c) 2008-2009 Moz (@syo68k) <http://iddy.jp/profile/moz/>
4 ' (c) 2008-2009 takeshik (@takeshik) <http://www.takeshik.org/>
7 ' This file is part of Tween.
9 ' This program is free software; you can redistribute it and/or modify it
10 ' under the terms of the GNU General Public License as published by the Free
11 ' Software Foundation; either version 3 of the License, or (at your option)
14 ' This program is distributed in the hope that it will be useful, but
15 ' WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 ' or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 ' You should have received a copy of the GNU General Public License along
20 ' with this program. If not, see <http://www.gnu.org/licenses/>, or write to
21 ' the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
22 ' Boston, MA 02110-1301, USA.
24 Imports System.Windows.Forms
26 Public Class InputTabName
28 Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
29 Me.DialogResult = System.Windows.Forms.DialogResult.OK
33 Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
35 Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
39 Public Property TabName() As String
41 Return Me.TextTabName.Text.Trim()
43 Set(ByVal value As String)
44 TextTabName.Text = value.Trim()
48 Public WriteOnly Property FormTitle() As String
49 Set(ByVal value As String)
54 Public WriteOnly Property FormDescription() As String
55 Set(ByVal value As String)
56 Me.LabelDescription.Text = value
60 Private _isShowUsage As Boolean
61 Public WriteOnly Property IsShowUsage() As Boolean
62 Set(ByVal value As Boolean)
67 Private _usage As TabUsageType
68 Public ReadOnly Property Usage() As TabUsageType
74 Private Sub InputTabName_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
75 Me.LabelUsage.Visible = False
76 Me.ComboUsage.Visible = False
77 Me.ComboUsage.Items.Add("タイムライン振り分け")
78 Me.ComboUsage.Items.Add("PublicSearch")
79 Me.ComboUsage.SelectedIndex = 0
82 Private Sub InputTabName_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
83 ActiveControl = TextTabName
85 Me.LabelUsage.Visible = True
86 Me.ComboUsage.Visible = True
90 Private Sub ComboUsage_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboUsage.SelectedIndexChanged
91 Select Case ComboUsage.SelectedIndex
93 _usage = TabUsageType.UserDefined
95 _usage = TabUsageType.PublicSearch
97 _usage = TabUsageType.Undefined