Add nice tooltip for importing students

This commit is contained in:
Tim Young 2017-08-01 17:14:21 -05:00
parent 8907ba1597
commit b674c521ba
2 changed files with 15 additions and 0 deletions

View File

@ -23,6 +23,9 @@ namespace EduNetworkBuilder
PersonClass ViewedUser = null;
SchoolworkClass ViewedSchoolwork = null;
ToolTip myTooltip = new ToolTip();
class StudentHolder
{
public string Name = "";
@ -76,6 +79,14 @@ namespace EduNetworkBuilder
Icon = Properties.Resources.NBIco;
LanguagifyComponents();
myTooltip.AutoPopDelay = 5000;
myTooltip.InitialDelay = 1000;
myTooltip.ReshowDelay = 500;
// Force the ToolTip text to be displayed whether or not the form is active.
myTooltip.ShowAlways = true;
myTooltip.SetToolTip(btnImportStudents, NB.Translate("PPF_ImportToolTip"));
if (CurrentUser == null && FileName == "")
{
//Prompt for a username

View File

@ -1777,6 +1777,10 @@
<value>Import Students</value>
<comment>PPF_ImportStudents = Import Students</comment>
</data>
<data name="PPF_ImportToolTip" xml:space="preserve">
<value>Import from comma-deliminated file. User, Full Name, password. With full name and password being optional.</value>
<comment>PPF_ImportToolTip = Import from comma-deliminated file. User, Full Name, password. With full name and password being optional.</comment>
</data>
<data name="PPF_Launch" xml:space="preserve">
<value>Launch</value>
<comment>PPF_Launch = Launch</comment>