public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Movie;component/Login.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.loginbutton = ((Facebook.Client.Controls.LoginButton)(this.FindName("loginbutton"))); this.picProfile = ((System.Windows.Controls.Image)(this.FindName("picProfile"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/PhoneApp2;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.loginButton = ((Facebook.Client.Controls.LoginButton)(this.FindName("loginButton"))); this.queryButton = ((System.Windows.Controls.Button)(this.FindName("queryButton"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/KP%20Monitor;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.tombolLogin = ((System.Windows.Controls.Button)(this.FindName("tombolLogin"))); this.loginButton = ((Facebook.Client.Controls.LoginButton)(this.FindName("loginButton"))); }
private void login(LoginCallback cb) { if (loginLock) { return; } loginLock = true; SilverlightImplementation.dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async () => { loginFace = new LoginButton(); await loginFace.RequestNewPermissions("publish_actions"); Session.ActiveSession.LoginWithBehavior("email,public_profile,user_friends", FacebookLoginBehavior.LoginBehaviorAppwithMobileInternetFallback); }).AsTask().GetAwaiter().GetResult(); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/timecapsule_test;component/Login.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.tbuname = ((System.Windows.Controls.TextBox)(this.FindName("tbuname"))); this.tbpwd = ((System.Windows.Controls.PasswordBox)(this.FindName("tbpwd"))); this.tbFbUser = ((System.Windows.Controls.TextBlock)(this.FindName("tbFbUser"))); this.tbFbUid = ((System.Windows.Controls.TextBlock)(this.FindName("tbFbUid"))); this.loginButton = ((Facebook.Client.Controls.LoginButton)(this.FindName("loginButton"))); }
private void loginButton_SessionStateChanged(object sender, Facebook.Client.Controls.SessionStateChangedEventArgs e) { Facebook.Client.Controls.LoginButton x = (Facebook.Client.Controls.LoginButton)sender; if (e.SessionState == Facebook.Client.Controls.FacebookSessionState.Opened) { App.CurrentSession = x.CurrentSession; App.AccessToken = x.CurrentSession.AccessToken; App.FacebookId = x.CurrentSession.FacebookId; App.CurrentUser = x.CurrentUser; App.isAuthenticated = true; Frame.Navigate(typeof(MainPage)); } else if (e.SessionState == Facebook.Client.Controls.FacebookSessionState.Closed) { App.CurrentSession = null; // The control signals when user info is set (handled in OnUserInfoChanged below), but not when it // is cleared (probably a bug), so we clear our reference here when the session ends. App.CurrentUser = null; } }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/KP%20Monitor;component/Content.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.isi = ((Microsoft.Phone.Controls.Panorama)(this.FindName("isi"))); this.login = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("login"))); this.opening = ((System.Windows.Controls.TextBlock)(this.FindName("opening"))); this.home = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("home"))); this.profilePicture = ((Facebook.Client.Controls.ProfilePicture)(this.FindName("profilePicture"))); this.namauser = ((System.Windows.Controls.TextBlock)(this.FindName("namauser"))); this.userInfo = ((System.Windows.Controls.TextBlock)(this.FindName("userInfo"))); this.post = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("post"))); this.postfeed = ((System.Windows.Controls.Button)(this.FindName("postfeed"))); this.postKata = ((System.Windows.Controls.TextBox)(this.FindName("postKata"))); this.likedata = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("likedata"))); this.hasilquery = ((System.Windows.Controls.TextBlock)(this.FindName("hasilquery"))); this.query = ((System.Windows.Controls.Button)(this.FindName("query"))); this.namapage = ((System.Windows.Controls.TextBox)(this.FindName("namapage"))); this.reward = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("reward"))); this.hadiahmakan = ((System.Windows.Controls.TextBlock)(this.FindName("hadiahmakan"))); this.hadiahminum = ((System.Windows.Controls.TextBlock)(this.FindName("hadiahminum"))); this.postdetail = ((Microsoft.Phone.Controls.PanoramaItem)(this.FindName("postdetail"))); this.scrollViewer1 = ((System.Windows.Controls.ScrollViewer)(this.FindName("scrollViewer1"))); this.detailpostfb = ((System.Windows.Controls.TextBlock)(this.FindName("detailpostfb"))); this.headerpostdetail = ((System.Windows.Controls.TextBlock)(this.FindName("headerpostdetail"))); this.loginButton = ((Facebook.Client.Controls.LoginButton)(this.FindName("loginButton"))); this.wait = ((System.Windows.Controls.Canvas)(this.FindName("wait"))); this.waitteks = ((System.Windows.Controls.TextBlock)(this.FindName("waitteks"))); this.performanceProgressBar = ((System.Windows.Controls.ProgressBar)(this.FindName("performanceProgressBar"))); }