private void GUI_Load(object sender, EventArgs e) { ApplicationSettings.Gui = this; compiti = NetHelper.GetCompiti(); //SORT DESCENDING BY DATETIME compiti = GUIHelper.SortDescending(compiti); foreach (Compito compito in compiti) { Console.WriteLine("YOLO"); GUIHelper.AddCompitoToGUI(compito); } GUIHelper.NotifyUser(this, I3Compiti.Data.ApplicationSettings.NotifyTimeout, "I3Compiti", "Application Started!", ToolTipIcon.Info); ClientHelper.NotifyEvents(this, compiti.ToArray <Compito>()); //TODO: START TIMER CHECK! HomeworkTimer.Interval = 5000; HomeworkTimer.AutoReset = true; HomeworkTimer.Enabled = false; HomeworkTimer.Elapsed += RefreshCompiti; materialLabelBuild.ForeColor = Color.Red; }