public Przedmioty_ac(Semestr s, int numer) { InitializeComponent(); ob = s; l_semestr.Text = numer.ToString(); UzupelnijWidok(); }
private double SredniaRoczna(Semestr sem1, Semestr sem2) { if (sem1.isActive && sem2.isActive) { return(Math.Round((sem1.LiczSredniaOcen() + sem2.LiczSredniaOcen()) / 2, 3)); } else { return(0); } }