Skip to content

Commit f6aa110

Browse files
committed
2.5.1.6 - Screen Capture Status With Label Switcher updated to include a textbox so new labels can be added to the list of labels from the tool.
1 parent 85cc732 commit f6aa110

File tree

2 files changed

+52
-4
lines changed

2 files changed

+52
-4
lines changed

interface/tools/FormScreenCaptureStatusWithLabelSwitcher.Designer.cs

Lines changed: 33 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

interface/tools/FormScreenCaptureStatusWithLabelSwitcher.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,24 @@ private void comboBoxLabels_SelectedIndexChanged(object sender, EventArgs e)
6464
_config.Settings.User.Save(_config.Settings, _fileSystem);
6565
}
6666
}
67+
68+
private void buttonAddScreenshotLabelToList_Click(object sender, EventArgs e)
69+
{
70+
string labelToAdd = textBoxNewLabel.Text.Trim();
71+
72+
if (string.IsNullOrEmpty(labelToAdd))
73+
{
74+
return;
75+
}
76+
77+
textBoxNewLabel.Clear();
78+
79+
if (!comboBoxLabels.Items.Contains(labelToAdd))
80+
{
81+
comboBoxLabels.Items.Add(labelToAdd);
82+
83+
comboBoxLabels.SelectedItem = labelToAdd;
84+
}
85+
}
6786
}
6887
}

0 commit comments

Comments
 (0)