• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision24e354c30ee47213e1e12a3528d6b0be44dc172d (tree)
l'heure2020-08-30 14:58:22
AuteurKazuhiro Fujieda <fujieda@user...>
CommiterKazuhiro Fujieda

Message de Log

QuestPanelのダブルクリックの自前実装をやめる

Change Summary

Modification

--- a/KancolleSniffer.Test/QuestPanelTest.cs
+++ b/KancolleSniffer.Test/QuestPanelTest.cs
@@ -31,7 +31,7 @@ namespace KancolleSniffer.Test
3131 [TestInitialize]
3232 public void Initialize()
3333 {
34- _panel.CreateLabels(Lines, (obj, e) => { });
34+ _panel.CreateLabels(Lines);
3535 }
3636
3737 /// <summary>
--- a/KancolleSniffer/MainForm.cs
+++ b/KancolleSniffer/MainForm.cs
@@ -16,12 +16,10 @@ using System;
1616 using System.Collections.Generic;
1717 using System.Drawing;
1818 using System.Linq;
19-using System.Threading.Tasks;
2019 using System.Windows.Forms;
2120 using KancolleSniffer.Notification;
2221 using KancolleSniffer.Util;
2322 using KancolleSniffer.View;
24-using Clipboard = KancolleSniffer.Util.Clipboard;
2523
2624 namespace KancolleSniffer
2725 {
@@ -128,7 +126,7 @@ namespace KancolleSniffer
128126 private void SetupQuestPanel()
129127 {
130128 int prevHeight = questPanel.Height;
131- questPanel.CreateLabels(Config.QuestLines, labelQuest_DoubleClick);
129+ questPanel.CreateLabels(Config.QuestLines);
132130 Height += questPanel.Height - prevHeight;
133131 }
134132
@@ -446,20 +444,5 @@ namespace KancolleSniffer
446444 {
447445 labelClearQuest.BackColor = DefaultBackColor;
448446 }
449-
450- private void labelQuest_DoubleClick(object sender, EventArgs e)
451- {
452- var label = (Label)sender;
453- if (string.IsNullOrEmpty(label.Text))
454- return;
455- Clipboard.SetText(label.Text);
456- _tooltipCopy.Active = true;
457- _tooltipCopy.Show("コピーしました。", label);
458- Task.Run(async () =>
459- {
460- await Task.Delay(1000);
461- _tooltipCopy.Active = false;
462- });
463- }
464447 }
465448 }
\ No newline at end of file
--- a/KancolleSniffer/View/QuestPanel.cs
+++ b/KancolleSniffer/View/QuestPanel.cs
@@ -42,7 +42,7 @@ namespace KancolleSniffer.View
4242 public override Control[] Controls => new Control[] {Color, Count, Progress, Name};
4343 }
4444
45- public void CreateLabels(int lines, EventHandler onDoubleClick)
45+ public void CreateLabels(int lines)
4646 {
4747 _lines = LimitLines(lines);
4848 _labels = new QuestLabels[_lines];
@@ -75,7 +75,6 @@ namespace KancolleSniffer.View
7575 TextAlign = ContentAlignment.MiddleRight
7676 }
7777 };
78- _labels[i].Name.DoubleClick += onDoubleClick;
7978 _labels[i].Arrange(this);
8079 }
8180 ResumeLayout();