public Profile() { InitializeComponent(); string fullname = Application.Current.Properties["user_firstname"] + " " + Application.Current.Properties["user_lastname"]; namelabel.Text = fullname; phonelabel.Text = Application.Current.Properties["user_phone"].ToString(); emaillabel.Text = Application.Current.Properties["user_email"].ToString(); addresslabel.Text = Application.Current.Properties["user_address"] + "\n" + Application.Current.Properties["user_city"] + ", " + Application.Current.Properties["user_state"] + " " + Application.Current.Properties["user_zip"]; if (Application.Current.Properties["user_iswizard"] == null || Application.Current.Properties["user_iswizard"] + "" == "") { HttpAuthHandler.logout(); } else { ViewJobButton.IsVisible = Boolean.Parse(Application.Current.Properties["user_iswizard"] + ""); } //CreateJobButton.IsVisible = ! (bool) Application.Current.Properties["user_iswizard"]; }
private async void Logout_Clicked(object sender, EventArgs e) { await HttpAuthHandler.logout(); }