public settings(MainWindow root, admin_frame _sub) { InitializeComponent(); parent = root; subparent = _sub; profilePix.Source = subparent.image1.Source; }
/// <summary> /// Loads account of user according to thier account category /// </summary> /// <param name="category"></param> /// <param name="id"></param> public void loadAccount(string category, int id) { if (category.Equals("new")) { pages.welcome newPage = new pages.welcome(this, id); pageTransitionControl.TransitionType = PageTransitionType.Fade; pageTransitionControl.ShowPage(newPage); } else if (category.Equals("doctor")) { pages.doctor.doctor_frame newPage = new pages.doctor.doctor_frame(this, id); pageTransitionControl.TransitionType = PageTransitionType.Fade; pageTransitionControl.ShowPage(newPage); } else if (category.Equals("patient")) { pages.patient.patient_frame newPage = new pages.patient.patient_frame(this, id); pageTransitionControl.TransitionType = PageTransitionType.Fade; pageTransitionControl.ShowPage(newPage); } else if (category.Equals("admin")) { pages.admin.admin_frame newPage = new pages.admin.admin_frame(this, id); pageTransitionControl.TransitionType = PageTransitionType.Fade; pageTransitionControl.ShowPage(newPage); } }
public pharmacy(MainWindow root, admin_frame _sub) { parent = root; subparent = _sub; InitializeComponent(); DataTable qry = parent.query("select * from drugs order by drug_name asc"); listDrugs(qry); }
public all_account(MainWindow root, admin_frame _sub) { parent = root; subparent = _sub; InitializeComponent(); timer = new DispatcherTimer(); timer.Tick += new EventHandler(timer_tick); timer.Interval = new TimeSpan(0, 0, 2); timer.Start(); }