/// <summary> /// Constructor Method /// </summary> /// <param name="listhold"></param> public Pharmacist(ListHolder listhold, ListHolder.Usertype value) { InitializeComponent(); ParentListHolder = listhold; ParentListHolder.Initialise(); //Loads Stock Control Method usertype = value; }
public MainForm(ListHolder.Usertype usertypevalue, ListHolder mainlist) { InitializeComponent(); parentlistholder = mainlist; if (usertypevalue == ListHolder.Usertype.Cashier) //If User is a Cashier { AddPrescription.Enabled = true; //they can use the add prescription form usertype = usertypevalue; //Parses User Type } else if (usertypevalue == ListHolder.Usertype.Pharmacist) //If User is a Pharmacist { ProcessPrescription.Enabled = true; //they can use the process prescription form usertype = usertypevalue; //Parses User Type } else if (usertypevalue == ListHolder.Usertype.Administrator) //If User is a Admin { //Administrators can use everything ProcessPrescription.Enabled = true; AddPrescription.Enabled = true; StockControl.Enabled = true; UserManagement.Enabled = true; btnManagementReport.Enabled = true; usertype = usertypevalue; //Parses User Type } }
ListHolder.Usertype usertype; //Users Type public AddPrescription(ListHolder holder, ListHolder.Usertype value) //Constructor Method { InitializeComponent(); parentlistholder = holder; //Loads in ListHolder parentlistholder.Initialise(); // Loads in Dodgy Bobs Stock Control System adddoc = new AddDoctor(parentlistholder); //Create a Instance of the AddDoctor Form usertype = value; }
List <Doctor> DoctorList = new List <Doctor>(); //List of Doctor Classes public AddDoctor(ListHolder listhold) { InitializeComponent(); listhold = parentlisthold; // Loads the Listholder in }
/// <summary> /// Constructor Method /// </summary> /// <param name="listhold"></param> public UserManagement(ListHolder listhold, ListHolder.Usertype value) { InitializeComponent(); users = listhold; usertype = value; }
ListHolder.Usertype usertype; //Users Type /// <summary> /// Constructor Method /// </summary> /// <param name="hold"></param> public StockControl(ListHolder hold, ListHolder.Usertype value) { InitializeComponent(); parentlistholder = hold; usertype = value; }
List <Prescription> PrescriptionsList = new List <Prescription>(); //List of Prescriptions /// <summary> /// Constructor Method /// </summary> /// <param name="listholder"></param> public ManagementReport(ListHolder listholder, ListHolder.Usertype value) { InitializeComponent(); prescriptions = listholder; usertype = value; }