Develop and Download Open Source Software

Browse Subversion Repository

Contents of /OpenLiveFromStreamIDWindow.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download)
Sun Jan 16 06:24:15 2011 UTC (13 years, 1 month ago) by aqua877
File size: 1063 byte(s)
First commit.
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9 using System.Text.RegularExpressions;
10
11 namespace Aqua877.WinApp.IronLivetube
12 {
13 public partial class OpenLiveFromStreamIDWindow : Form
14 {
15 public OpenLiveFromStreamIDWindow()
16 {
17 InitializeComponent();
18 }
19
20 private void OpenLiveButton_Click(object sender, EventArgs e)
21 {
22 if (this.StreamIDTextBox.Text == "")
23 {
24 this.ErrorMessageTextBox.Visible = true;
25 this.ErrorMessageTextBox.Text = " StreamIDを入力してください。";
26 }
27 else if (!Regex.IsMatch(this.StreamIDTextBox.Text, GlobalValues.StreamIDPattern))
28 {
29 this.ErrorMessageTextBox.Visible = true;
30 this.ErrorMessageTextBox.Text = " StreamIDの形式が正しくありません。";
31 }
32 else
33 {
34 this.Tag = this.StreamIDTextBox.Text;
35 this.DialogResult = System.Windows.Forms.DialogResult.OK;
36 this.Close();
37 }
38 }
39 }
40 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26