//return to the new refill requests panel
 private void backButton_Click(object sender, EventArgs e)
 {
     RefillRequest.retrieveRefillRequests();
     populateList();
     prescriptionDetailPanel.Hide();
     newRefillRequestsPanel.Show();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update notices, prescriptions, and refill requests from the database and display the number of each with status New
 /// </summary>
 private void showUnread()
 {
     Notice.retrieveNotices();
     Prescription.retrieveNewPrescriptions();
     RefillRequest.retrieveRefillRequests();
     newNoticesButton.Text        = "Notices  (" + Notice.unread + ")";
     newPrescriptionsButton.Text  = "Prescriptions  (" + Prescription.NewPrescriptionCount + ")";
     newRefillRequestsButton.Text = "Refill Requests  (" + RefillRequest.NewRefillRequestCount + ")";
 }
Ejemplo n.º 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Login());

            //check if authentication is successful
            if (Login.loginSuccess)
            {
                //retrieve information from database
                Notice.retrieveNotices();
                Prescription.retrieveNewPrescriptions();
                RefillRequest.retrieveRefillRequests();
                //launch main menu
                Application.Run(new MainMenu());
            }
        }