Exemple #1
0
 /// <summary>
 /// Opens a form for editing the clicked year.
 /// </summary>
 /// <param name="sender">Button for editing a year.</param>
 /// <param name="e"></param>
 private async void  EditYearClick(object sender, EventArgs e)
 {
     var currYear = await years.GetOne(yearId);
     var form = new YearForm(currYear);
     form.ShowDialog();
     await Globals.UpdateCurrentUser();
 }
Exemple #2
0
 /// <summary>
 /// Opens form to create a new year.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AddYearClick(object sender, EventArgs e)
 {
     var form = new YearForm(currGroup);
     form.ShowDialog();
     UpdateYearsSource();
 }