public void updatecorsework(corsework item, int index) { corsework a = years[selectedyear].getsubject(selectedsubject).getcoursework(index); a.setduedate(item.getduedate()); a.setmarks(item.getmarks()); a.setname(item.getname()); a.setoverallvalue(item.getoverallvalue()); a.settotalmarks(item.gettotalmarks()); updatecoursework(); }
public corseworkedit(ref corsework it,int index) { InitializeComponent(); i = index; thework = it; textBox1.Text = thework.getname(); numericUpDown1.Value = thework.getoverallvalue(); textBox2.Text = thework.getmarks().ToString(); numericUpDown2.Value = (decimal)thework.gettotalmarks(); dateTimePicker1.Value = thework.getduedate(); }