//Calls function to edit the table private void EditTable_MouseDoubleClick(object sender, MouseButtonEventArgs e) { EditDataGrid ed = new EditDataGrid(); ed.Show(); ed.Closed += (x, y) => { FillEntrys(); }; }
/// <summary> /// Calls window to edit entry /// </summary> private void EditTable_MouseDoubleClick(object sender, MouseButtonEventArgs e) { //string weekNr, string name, DateTime exTime, double lastCashDesks EditDataGrid ed = new EditDataGrid(); ed.Show(); ed.Closed += (x, y) => { string nr = CurrWeek.WeekNr; CurrWeek = new Week(nr); GenerateDaysOfThWeekAndAddToWeek(); LoadWeek(nr); FillEntryTable(); ReCalcAndUpdateInfoLine(); }; }