public ViewDonorDetails()
 {
     principleUser = Login.GetPrincipalUser();
     InitializeComponent();
     PopulateViewGUI();
     SharedFunctions.FullSizeWindow(this);
 }
Пример #2
0
 public Search()
 {
     InitializeComponent();
     aSearch         = new List <DonorDetail>();
     triggeredSearch = true;
     SharedFunctions.FullSizeWindow(this);
 }
Пример #3
0
 public Account( )
 {
     SharedFunctions.FullSizeWindow(this);
     principleUser = Login.GetPrincipalUser();
     InitializeComponent();
     if (AlreadyGaveDonorData())
     {
         medical.Content = "View Donor Details";
     }
     populateGUI();
 }
Пример #4
0
        public MainWindow()
        {
            SharedFunctions.FullSizeWindow(this);
            logged = Login.GetPrincipalUser();
            InitializeComponent();
            if (logged != null)
            {
                navLog.Content = "Sign out";
                label.Content  = $"Welcome {logged.Username}";

                Button personalDetails = new Button
                {
                    Content    = "My Account",
                    Margin     = new Thickness(0, 0, 0, 10),
                    Background = new SolidColorBrush(Color.FromRgb(122, 180, 230)),
                    Foreground = Brushes.White
                };
                nav.Children.Add(personalDetails);
                personalDetails.Click += details_Click;
            }
        }
 public RegisterMedical()
 {
     InitializeComponent();
     SharedFunctions.FullSizeWindow(this);
 }
Пример #6
0
 public DataRecords()
 {
     InitializeComponent();
     SharedFunctions.FullSizeWindow(this);
 }
Пример #7
0
 public Login()
 {
     InitializeComponent();
     SharedFunctions.FullSizeWindow(this);
 }