private void Dashboard_Click(object sender, RoutedEventArgs e)
        {
            var newWindow = new DashboardWindow();

            newWindow.Show();
            this.Close();
        }
        private void Save_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult messageBoxResult = MessageBox.Show("Are you sure?", "Delete Confirmation", MessageBoxButton.YesNo);

            if (messageBoxResult == MessageBoxResult.Yes)
            {
                List <MonthlyMealTotal> _mealTotal = new List <MonthlyMealTotal>();
                foreach (var item in finalStep)
                {
                    MonthlyMealTotal _total = new MonthlyMealTotal();
                    _total.Name     = item.Name;
                    _total.Month    = list.FirstOrDefault().Month;
                    _total.Year     = list.FirstOrDefault().Year;
                    _total.Status   = "Pending";
                    _total.Bazar    = item.Bazar;
                    _total.Balance  = Convert.ToInt32(item.Balance);
                    _total.RealCost = Convert.ToInt32(item.RealCost);

                    _mealTotal.Add(_total);
                }
                Application.Current.Resources["list"]     = null;
                Application.Current.Resources["mainStep"] = null;
                repo.InsertTotalMeal(_mealTotal);
                MessageBox.Show("Saved!!");
                var newWindow = new DashboardWindow();
                newWindow.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Not Saved!!");
            }
        }