//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();
            };
        }
Example #2
0
        /// <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();
            };
        }