﻿
using DataConnect.Client.Windows.ViewModel.ActivityDownload;
using DataConnect.Client.Windows.ViewModel.ActivityDownload.Controls;
using DataConnect.Client.Windows.ViewModel.Logger;
using DataConnect.Client.Windows.ViewModel.Logger.Controls;
using DataConnect.Client.Windows.ViewModel.PlanLoader;
using DataConnect.Client.Windows.ViewModel.PlanLoader.Controls;
using DataConnect.Client.Windows.ViewModel.WeightLoader;
using DataConnect.Client.Windows.ViewModel.WeightLoader.Controls;
using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DataConnect.Client.Windows.ViewModel.Root.Controls
{
#pragma warning disable S110 // Inheritance tree of classes should not be too deep
                            /// <summary>
                            /// Interaction logic for MainWindow.xaml
                            /// </summary>
    public partial class RootWindow : Window
#pragma warning restore S110 // Inheritance tree of classes should not be too deep
    {
        private readonly RootViewModel _viewModel;
        public RootWindow(PlanLoaderViewModel planViewModel,
            WeightLoaderViewModel weightViewModel,
            ActivityDownloadViewModel activityViewModel,
            LoggerViewModel loggerViewModel,
           RootViewModel rootViewModel)
        {
            DataContext = rootViewModel;
            _viewModel = rootViewModel;
            InitializeComponent();
            gridActivityView.Children.Add(new ActivityView(activityViewModel));
            gridPlanView.Children.Add(new PlanView(planViewModel));
            gridWeightView.Children.Add(new WeightView(weightViewModel));
            gridLoggerView.Children.Add(new LoggerView(loggerViewModel));
        }
    }
}
