Skip to content

Commit

Permalink
Aggiunta la possibilità di ordinare le righe per nome
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogis committed Sep 6, 2023
1 parent 58d4611 commit 6a19556
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
13 changes: 13 additions & 0 deletions FetToExcel.Designer.cs

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

9 changes: 8 additions & 1 deletion FetToExcel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private void BtnImporta_Click(object sender, EventArgs e)
}


XmlNodeList teachers = teachersTimeTable[0].ChildNodes;
var teachers = document.SelectNodes("Teachers_Timetable")[0].Cast<XmlNode>();



Expand Down Expand Up @@ -235,6 +235,13 @@ private void BtnImporta_Click(object sender, EventArgs e)
int? idxGiorno = null;
int? numeroColonna = null;


if (this.chkOrderByName.Checked)
{
teachers = teachers.OrderBy(r => r.Attributes["name"].Value);
}


foreach (XmlNode teacher in teachers)
{
string teacherName = teacher.Attributes["name"].Value;
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
[assembly: AssemblyVersion("1.3.1.0")]
[assembly: AssemblyFileVersion("1.3.1.0")]

0 comments on commit 6a19556

Please sign in to comment.