Exemplo n.º 1
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/KinectKollagePhoneApp;component/Upload.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.btnSignin = ((Microsoft.Live.Controls.SignInButton)(this.FindName("btnSignin")));
     this.infoTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("infoTextBlock")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EcosCab;component/ProfilesBackupPage.xaml", System.UriKind.Relative));
     this.btnSignIn = ((Microsoft.Live.Controls.SignInButton)(this.FindName("btnSignIn")));
     this.btnSave = ((System.Windows.Controls.Button)(this.FindName("btnSave")));
     this.btnRestore = ((System.Windows.Controls.Button)(this.FindName("btnRestore")));
     this.lbLog = ((Telerik.Windows.Controls.RadDataBoundListBox)(this.FindName("lbLog")));
     this.busyIndicator = ((Telerik.Windows.Controls.RadBusyIndicator)(this.FindName("busyIndicator")));
 }
Exemplo n.º 3
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PlanMyWay.Lib.Test;component/PivotPage1.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.signInButton = ((Microsoft.Live.Controls.SignInButton)(this.FindName("signInButton")));
     this.dateFrom = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("dateFrom")));
     this.dateTo = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("dateTo")));
     this.progressBar = ((System.Windows.Controls.ProgressBar)(this.FindName("progressBar")));
     this.lst_dateAndpositions = ((System.Windows.Controls.ListBox)(this.FindName("lst_dateAndpositions")));
 }
Exemplo n.º 4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/CircularRecorderApp;component/SignIn.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this._signInButton = ((Microsoft.Live.Controls.SignInButton)(this.FindName("_signInButton")));
 }
Exemplo n.º 5
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SkyNote;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.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.infoTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("infoTextBlock")));
     this.btnSignin = ((Microsoft.Live.Controls.SignInButton)(this.FindName("btnSignin")));
     this.btnViewContents = ((System.Windows.Controls.Button)(this.FindName("btnViewContents")));
 }
Exemplo n.º 6
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/CreateOneNotePage;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.btnLogin = ((Microsoft.Live.Controls.SignInButton)(this.FindName("btnLogin")));
     this.txtUserInfo = ((System.Windows.Controls.TextBlock)(this.FindName("txtUserInfo")));
     this.txtNotebookName = ((System.Windows.Controls.TextBox)(this.FindName("txtNotebookName")));
     this.txtSectionName = ((System.Windows.Controls.TextBox)(this.FindName("txtSectionName")));
     this.btnCreatePage = ((System.Windows.Controls.Button)(this.FindName("btnCreatePage")));
     this.txtInfoText = ((System.Windows.Controls.TextBlock)(this.FindName("txtInfoText")));
     this.hyperlinkViewNote = ((System.Windows.Controls.HyperlinkButton)(this.FindName("hyperlinkViewNote")));
 }
Exemplo n.º 7
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Beem;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.btnSignIn = ((Microsoft.Live.Controls.SignInButton)(this.FindName("btnSignIn")));
     this.grdLoading = ((System.Windows.Controls.Grid)(this.FindName("grdLoading")));
     this.pvtRecorded = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("pvtRecorded")));
     this.grdUpload = ((System.Windows.Controls.Grid)(this.FindName("grdUpload")));
     this.appBar = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBar")));
     this.btnRefreshStationList = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnRefreshStationList")));
     this.btnNowPlaying = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnNowPlaying")));
     this.btnAbout = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("btnAbout")));
     this.btnSettings = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("btnSettings")));
 }
Exemplo n.º 8
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Timelog;component/OneDrivePage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.OneDriveButton = ((Microsoft.Live.Controls.SignInButton)(this.FindName("OneDriveButton")));
     this.infoTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("infoTextBlock")));
     this.upsky = ((System.Windows.Controls.Image)(this.FindName("upsky")));
     this.Upload = ((System.Windows.Controls.TextBlock)(this.FindName("Upload")));
     this.performanceProgressBar = ((Microsoft.Phone.Controls.PerformanceProgressBar)(this.FindName("performanceProgressBar")));
 }
Exemplo n.º 9
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/UniMoodle;component/skydrivePage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtbTitulodapágina = ((System.Windows.Controls.TextBlock)(this.FindName("txtbTitulodapágina")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.lstFolders = ((System.Windows.Controls.ListBox)(this.FindName("lstFolders")));
     this.txtbConectado = ((System.Windows.Controls.TextBlock)(this.FindName("txtbConectado")));
     this.barraProgresso = ((System.Windows.Controls.ProgressBar)(this.FindName("barraProgresso")));
     this.txtbStatus = ((System.Windows.Controls.TextBlock)(this.FindName("txtbStatus")));
     this.txtbInfo = ((System.Windows.Controls.TextBlock)(this.FindName("txtbInfo")));
     this.signInButton1 = ((Microsoft.Live.Controls.SignInButton)(this.FindName("signInButton1")));
     this.btnArquivo = ((System.Windows.Controls.Button)(this.FindName("btnArquivo")));
 }
Exemplo n.º 10
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            // this is a common way for refreshing Application Bar buttons
            this._addNoteAppButton = (ApplicationBarIconButton)ApplicationBar.Buttons[0];
            this._selectAppButton = (ApplicationBarIconButton)ApplicationBar.Buttons[1];
            this._removeNotesAppButton = (ApplicationBarIconButton)ApplicationBar.Buttons[2];

            this.DataContext = App.ViewModel;

            // requesting OpenID Connect app creds from server. 
            var client = new WebClient();

            client.OpenReadCompleted += (_, args) =>
            {
                if ((args.Error != null) || (args.Result == null))
                {
                    MessageBox.Show("Failed to get OpenID Connect app creds from server. Please, create OauthAppCredentials.json file in server's root and fill it with your own values!");
                    return;
                }

                var authConstants = AuthConstants.FromJsonStream(args.Result);
                App.ViewModel.AuthSchema = authConstants.JwtAuthSchema;

                // creating the SignInButton dynamically, because it doesn't support delayed ClientId initialization
                var signinButton = new SignInButton()
                {
                    TextType = ButtonTextType.SignIn,
                    Branding = BrandingType.MicrosoftAccount,
                    Scopes = "wl.signin wl.basic",
                    ClientId = authConstants.LiveClientId
                };
                Grid.SetRow(signinButton, 1);
                signinButton.SessionChanged += this.SignInButton_OnSessionChanged;

                this.LayoutRoot.Children.Add(signinButton);
            };

            client.OpenReadAsync(new Uri(MainViewModel.ServiceUri + "/AuthConstants.json"));
        }
Exemplo n.º 11
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Beem;component/SettingsPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.StackPanel)(this.FindName("ContentPanel")));
     this.btnDelete = ((System.Windows.Controls.Button)(this.FindName("btnDelete")));
     this.btnClearControls = ((System.Windows.Controls.Button)(this.FindName("btnClearControls")));
     this.txtKey = ((System.Windows.Controls.TextBox)(this.FindName("txtKey")));
     this.btnAuthorize = ((System.Windows.Controls.Button)(this.FindName("btnAuthorize")));
     this.btnGetKey = ((System.Windows.Controls.Button)(this.FindName("btnGetKey")));
     this.imgProfile = ((System.Windows.Controls.Image)(this.FindName("imgProfile")));
     this.txtMicrosoftEmail = ((System.Windows.Controls.TextBlock)(this.FindName("txtMicrosoftEmail")));
     this.btnSignIn = ((Microsoft.Live.Controls.SignInButton)(this.FindName("btnSignIn")));
     this.txtLastFmUsername = ((System.Windows.Controls.TextBox)(this.FindName("txtLastFmUsername")));
     this.txtLastFmPassword = ((System.Windows.Controls.PasswordBox)(this.FindName("txtLastFmPassword")));
     this.btnLastFmLogin = ((System.Windows.Controls.Button)(this.FindName("btnLastFmLogin")));
     this.tglScrobbleOnLaunch = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("tglScrobbleOnLaunch")));
     this.btnLastFmDeauth = ((System.Windows.Controls.Button)(this.FindName("btnLastFmDeauth")));
     this.grdLoading = ((System.Windows.Controls.Grid)(this.FindName("grdLoading")));
 }