/// <summary>
        /// Sets the connector of the search and table type control
        /// </summary>
        /// <param name="connector">The instance of the connector</param>
        private void SetConnector(Connector connector)
        {
            SearchControl.SetConnector(connector);
            TableTypeControl.SetConnector(connector);
            ClassGeneratorControl.SetConnector(connector);

            LoadData(TabControl.SelectedIndex);
        }
        /// <summary>
        /// Occurs when the window was loaded
        /// </summary>
        private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
        {
            if (DataContext is MainWindowViewModel viewModel)
            {
                viewModel.InitViewModel(SetConnector, LoadData, ClearControl);
            }

            SearchControl.InitControl();
            ClassGeneratorControl.InitControl();
        }
        /// <summary>
        /// Loads the data of the desired control
        /// </summary>
        /// <param name="tabIndex">The tab index</param>
        private void LoadData(int tabIndex)
        {
            switch (tabIndex)
            {
            case 1:
                TableTypeControl.LoadData();
                break;

            case 2:
                ClassGeneratorControl.LoadData();
                break;
            }
        }
 /// <summary>
 /// Clears the content of the controls
 /// </summary>
 private void ClearControl()
 {
     SearchControl.Clear();
     TableTypeControl.Clear();
     ClassGeneratorControl.Clear();
 }