コード例 #1
0
        //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();
            };
        }
コード例 #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();
            };
        }