// Handles the tab control situation.
        /// <summary>
        /// This function handles the selection of pages on click.
        /// </summary>
        /// <param name="a_sender">It holds the sender.</param>
        /// <param name="a_event">It holds the event.</param>
        public void onClickTabControl(Object a_sender, EventArgs a_event)
        {
            TabPage selectedTab = tabControl.SelectedTab;

            /// Navigates to the selected tab according to the selection.
            if (selectedTab == onlineChatTab)
            {
                OnlineChat chat = new OnlineChat(m_userEmail);
                chat.ShowDialog();
            }
            else if (selectedTab == coursesTab)
            {
                if (m_ucCourses != null)
                {
                    m_ucCourses.ExecuteGetRequest();
                }
                ViewCourses();
            }
            else if (selectedTab == appointmentTab)
            {
                if (m_ucAppointments != null)
                {
                    m_ucAppointments.RefreshController();
                }
                ViewAppointments();
            }
            else
            {
                /// This will open the dashboard by default
                ViewDashboard();
            }
        }
        /// <summary>
        /// This function is triggered when going online.
        /// </summary>
        /// <param name="a_sender">It holds the sender.</param>
        /// <param name="a_event">It holds the event.</param>
        private void GoOnlineTile_Click(object a_sender, EventArgs a_event)
        {
            OnlineChat chat = new OnlineChat(m_parent.m_userEmail);

            chat.ShowDialog();
        }
        public void ViewChat()
        {
            OnlineChat chat = new OnlineChat(m_userEmail);

            chat.ShowDialog();
        }