public override void ChooseClass(string Class)
        {
            Loger.Warning("Окно занятий", new List <KeyValuePair <string, string> > {
                new KeyValuePair <string, string>("Открыли", null)
            });

            CurrentClass = new Class(Class);
            ChooseDay(DateTime.Now.DayOfWeek);
            HeadlineWeeklySchedule.text = CurrentDay.ConvertToString(false) + " " + CurrentClass.ToString();
            _UIController.MergeTimePanel(true);
            Fill();
        }
Exemplo n.º 2
0
 public override void ChooseDay(DayOfWeek d)
 {
     if (d != CurrentExtraDay)
     {
         CurrentExtraDay           = d;
         HeadlineExtraClasses.text = d.ConvertToString(false);
         Fill();
     }
     else
     {
         Loger.Log("Окно доп.секций", new List <KeyValuePair <string, string> > {
             new KeyValuePair <string, string>("Повтор", null),
             new KeyValuePair <string, string>("IdDay", CurrentExtraDay.ToString())
         });
     }
 }
 public override void ChooseDay(DayOfWeek d)
 {
     if (d != CurrentDay)
     {
         if (d.Normalising() > 5 || d.Normalising() < 0)
         {
             d = DayOfWeek.Monday;
         }
         CurrentDay = d;
         string NameClass = HeadlineWeeklySchedule.text.Split()[1];
         HeadlineWeeklySchedule.text = d.ConvertToString(false) + " " + NameClass;
         Fill();
     }
     else
     {
         Loger.Log("Окно занятий", new List <KeyValuePair <string, string> > {
             new KeyValuePair <string, string>("Class", CurrentClass.ToString()),
             new KeyValuePair <string, string>("IdDay", CurrentDay.ToString()),
             new KeyValuePair <string, string>("Повтор", null),
         });
     }
 }