Пример #1
0
        private void StartNewDay()
        {
            CommonManager manager = new CommonManager();

            //First, check if the application starting for first time in the day.
            if (manager.CheckIfFirstTimeForDay(date.Value))
            {
                ////ask for the starting cash.
                //double startingCash = (new DayStartCash()).GetStartCash(DateTime.Parse(date.Text));
                double startingCash = 0;
                //mark day start in db
                manager.MarkDayStart(date.Value, startingCash);
            }
        }