OSDN Git Service

ShowUserInfoのプロフィール編集用テキストボックスの配置を初期化するタイミングを変更
authorKimura Youichi <kim.upsilon@bucyou.net>
Mon, 28 Apr 2014 17:55:33 +0000 (02:55 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Thu, 1 May 2014 09:47:02 +0000 (18:47 +0900)
OpenTween/ShowUserInfo.cs

index 9452902..396f32a 100644 (file)
@@ -287,6 +287,32 @@ namespace OpenTween
                 ButtonBlockDestroy.Enabled = true;
             }
 
+            this.TextBoxName.Location = this.LabelName.Location;
+            this.TextBoxName.Height = this.LabelName.Height;
+            this.TextBoxName.Width = this.LabelName.Width;
+            this.TextBoxName.BackColor = this.Owner.InputBackColor;
+            this.TextBoxName.MaxLength = 20;
+
+            this.TextBoxLocation.Location = this.LabelLocation.Location;
+            this.TextBoxLocation.Height = this.LabelLocation.Height;
+            this.TextBoxLocation.Width = this.LabelLocation.Width;
+            this.TextBoxLocation.BackColor = this.Owner.InputBackColor;
+            this.TextBoxLocation.MaxLength = 30;
+
+            this.TextBoxWeb.Location = this.LinkLabelWeb.Location;
+            this.TextBoxWeb.Height = this.LinkLabelWeb.Height;
+            this.TextBoxWeb.Width = this.LinkLabelWeb.Width;
+            this.TextBoxWeb.BackColor = this.Owner.InputBackColor;
+            this.TextBoxWeb.MaxLength = 100;
+
+            this.TextBoxDescription.Location = this.DescriptionBrowser.Location;
+            this.TextBoxDescription.Height = this.DescriptionBrowser.Height;
+            this.TextBoxDescription.Width = this.DescriptionBrowser.Width;
+            this.TextBoxDescription.BackColor = this.Owner.InputBackColor;
+            this.TextBoxDescription.MaxLength = 160;
+            this.TextBoxDescription.Multiline = true;
+            this.TextBoxDescription.ScrollBars = ScrollBars.Vertical;
+
             await Task.WhenAll(new[]
             {
                 this.SetDescriptionAsync(_info.Description),
@@ -543,45 +569,22 @@ namespace OpenTween
                 ButtonEditText = ButtonEdit.Text;
                 ButtonEdit.Text = Properties.Resources.UserInfoButtonEdit_ClickText1;
 
-                //座標初期化,プロパティ設定
-                TextBoxName.Location = LabelName.Location;
-                TextBoxName.Height = LabelName.Height;
-                TextBoxName.Width = LabelName.Width;
-                TextBoxName.BackColor = this.Owner.InputBackColor;
-                TextBoxName.MaxLength = 20;
                 TextBoxName.Text = LabelName.Text;
                 TextBoxName.TabStop = true;
                 TextBoxName.Visible = true;
                 LabelName.Visible = false;
 
-                TextBoxLocation.Location = LabelLocation.Location;
-                TextBoxLocation.Height = LabelLocation.Height;
-                TextBoxLocation.Width = LabelLocation.Width;
-                TextBoxLocation.BackColor = this.Owner.InputBackColor;
-                TextBoxLocation.MaxLength = 30;
                 TextBoxLocation.Text = LabelLocation.Text;
                 TextBoxLocation.TabStop = true;
                 TextBoxLocation.Visible = true;
                 LabelLocation.Visible = false;
 
-                TextBoxWeb.Location = LinkLabelWeb.Location;
-                TextBoxWeb.Height = LinkLabelWeb.Height;
-                TextBoxWeb.Width = LinkLabelWeb.Width;
-                TextBoxWeb.BackColor = this.Owner.InputBackColor;
-                TextBoxWeb.MaxLength = 100;
                 TextBoxWeb.Text = _info.Url;
                 TextBoxWeb.TabStop = true;
                 TextBoxWeb.Visible = true;
                 LinkLabelWeb.Visible = false;
 
-                TextBoxDescription.Location = DescriptionBrowser.Location;
-                TextBoxDescription.Height = DescriptionBrowser.Height;
-                TextBoxDescription.Width = DescriptionBrowser.Width;
-                TextBoxDescription.BackColor = this.Owner.InputBackColor;
-                TextBoxDescription.MaxLength = 160;
                 TextBoxDescription.Text = _info.Description;
-                TextBoxDescription.Multiline = true;
-                TextBoxDescription.ScrollBars = ScrollBars.Vertical;
                 TextBoxDescription.TabStop = true;
                 TextBoxDescription.Visible = true;
                 DescriptionBrowser.Visible = false;