private void patient_button_Click(object sender, RoutedEventArgs e)
        {
            patients newPage = new patients(parent, this);

            pageTransitionControl.TransitionType = PageTransitionType.SlideAndFade;
            pageTransitionControl.ShowPage(newPage);
        }
        /// <summary>
        /// Load up main page
        /// </summary>
        /// <param name="root"></param>
        /// <param name="account_id"></param>
        public doctor_frame(MainWindow root, int account_id)
        {
            parent    = root;
            AccountId = account_id;
            InitializeComponent();
            timer          = new DispatcherTimer();
            timer.Tick    += new EventHandler(timer_tick);
            timer.Interval = new TimeSpan(0, 0, 2);
            timer.Start();
            statusText.Foreground = Brushes.Yellow;
            statusCircle.Fill     = Brushes.Yellow;
            statusText.Content    = "Connecting to database";
            loadDoctorAccount();
            patients newPage = new patients(parent, this);

            pageTransitionControl.TransitionType = PageTransitionType.Fade;
            pageTransitionControl.ShowPage(newPage);
        }