Skip to content

Commit

Permalink
LinkLabel в TeacherControlPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
miks1965 committed Sep 7, 2024
1 parent 1835b81 commit 2365eb3
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Configuration/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal static class RevisionClass
public const string Major = "3";
public const string Minor = "10";
public const string Build = "0";
public const string Revision = "3535";
public const string Revision = "3536";

public const string MainVersion = Major + "." + Minor;
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
Expand Down
4 changes: 2 additions & 2 deletions Configuration/Version.defs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%MINOR%=10
%REVISION%=3535
%COREVERSION%=0
%REVISION%=3536
%MINOR%=10
%MAJOR%=3
2 changes: 1 addition & 1 deletion Release/pabcversion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.0.3535
3.10.0.3536
2 changes: 1 addition & 1 deletion ReleaseGenerators/PascalABCNET_version.nsh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!define VERSION '3.10.0.3535'
!define VERSION '3.10.0.3536'
25 changes: 13 additions & 12 deletions VisualPlugins/TraningControlPlugin/LoginForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions VisualPlugins/TraningControlPlugin/LoginForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,5 +401,15 @@ private void cancelButton_Click(object sender, EventArgs e)
Close();
passwordBox.Text = "";
}

private void labelRating_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.labelRating.LinkVisited = true;
if (string.IsNullOrEmpty(SiteProvider.Group))
return;
var group = SiteProvider.Group.Replace(' ', '+');

System.Diagnostics.Process.Start("https://air.mmcs.sfedu.ru/pascalabc/index.php?groupName=" + group);
}
}
}
8 changes: 7 additions & 1 deletion VisualPlugins/TraningControlPlugin/SiteAccessInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,17 @@ async public Task<string> Login(string shortFIO, string fullFIO, string password
{
case "FIO" : FullFIO = pair[1]; break;
case "ShortFIO": ShortFIO = pair[1]; break;
case "type" : {
case "type":
{
if (pair[1] == "prepod") UserType = UserTypeEnum.Teacher;
else if (pair[1] == "student") UserType = UserTypeEnum.Student;
break;
}
case "group":
{
Group = pair[1];
break;
}
}
}

Expand Down

0 comments on commit 2365eb3

Please sign in to comment.