public MainWindow(string token, string name) { this.name = name; StudentInfoHandler.ACCESS_TOKEN = token; AlertLogic.ACCESS_TOKEN = token; InitializeComponent(); TotalSetUp().Wait(); UpdateComboBox(); new NotificationIcon(this); altTimer = new AlertTimer(this); altTimer.StartTimer(); AlertLogic.currentList = totalAssignments; }
private void VariableSetups(string token, string name) { this.name = name; StudentInfoHandler.ACCESS_TOKEN = token; AlertLogic.ACCESS_TOKEN = token; InitializeComponent(); TotalSetUp().Wait(); UpdateComboBox(); new NotificationIcon(this); altTimer = new AlertTimer(this); altTimer.StartTimer(); AlertLogic.currentList = totalAssignments; PC = new ProcessControl(this); MainCalendar.IsTodayHighlighted = true; AssignmentDateBinding(); }