public UcwaAppCommunication(UcwaApp app) { this.ucwaApp = app; this.Resource = new UcwaResourceCommunication( this.ucwaApp.ApplicationResource.GetEmbeddedResource("communication")); this.ucwaApp.OnEventsReceived += new UcwaAppEventsReceivedEventHandler(ProcessEvents); }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; this.UcwaApp = new UcwaApp(); // app-specific }
public UcwaAppOnlineMeetings(UcwaApp app) { this.ucwaApp = app; this.ucwaApp.OnEventNotificationsReceived += ProcessEventsData; //this.ucwaApp.OnEventsReceived += new UcwaAppEventsReceivedEventHandler() this.ucwaApp.OnErrorReported += ProcessError; }
public UcwaAppMe(UcwaApp app) { this.ucwaApp = app; this.ucwaApp.OnEventNotificationsReceived += this.DispatchToUIThreadReceivedEventNotifications; this.ucwaApp.OnErrorReported += this.DispatchToUIThreadErrorReport; this.ucwaApp.OnProgressReported += this.DispatchToUIThreadProgressReport; this.Transport = app.Transport; this.Resource = app.ApplicationResource.GetEmbeddedResource("me"); }
/// <summary> /// Populates the page with content passed during navigation. Any saved state is also /// provided when recreating a page from a prior session. /// </summary> /// <param name="sender"> /// The source of the event; typically <see cref="NavigationHelper"/> /// </param> /// <param name="e">Event data that provides both the navigation parameter passed to /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and /// a dictionary of state preserved by this page during an earlier /// session. The state will be null the first time a page is visited.</param> private void navigationHelper_LoadState(object sender, LoadStateEventArgs e) { sendButton.IsEnabled = false; this.ucwaApp = e.NavigationParameter as UcwaApp; if (this.ucwaApp != null && this.ucwaApp.Communication != null) { this.ucwaApp.OnEventNotificationsReceived += communication_ShowEvents; this.ucwaApp.Communication.OnResourceStateChanged += communication_OnResourceStateChanged; this.ucwaApp.Communication.OnMessageReceived += Communication_OnMessageReceived; this.ucwaApp.Communication.OnErrorReported += communication_OnErrorReported; this.ucwaApp.Communication.OnProgressReported += Communication_OnProgressReported; this.ucwaApp.Communication.OnMessagingInviteReceived += Communication_OnMessagingInviteReceived; } if (Windows.Storage.ApplicationData.Current.LocalSettings.Values.ContainsKey("status")) { textBlockStatus.Text = Windows.Storage.ApplicationData.Current.LocalSettings.Values["status"].ToString(); } if (Windows.Storage.ApplicationData.Current.LocalSettings.Values.ContainsKey("events")) { textboxEvents.Text = Windows.Storage.ApplicationData.Current.LocalSettings.Values["events"].ToString(); } }
/// <summary> /// Populates the page with content passed during navigation. Any saved state is also /// provided when recreating a page from a prior session. /// </summary> /// <param name="sender"> /// The source of the event; typically <see cref="NavigationHelper"/> /// </param> /// <param name="e">Event data that provides both the navigation parameter passed to /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and /// a dictionary of state preserved by this page during an earlier /// session. The state will be null the first time a page is visited.</param> private async /*modified*/ void navigationHelper_LoadState(object sender, LoadStateEventArgs e) { this.UcwaApp = e.NavigationParameter as UcwaApp; if (Windows.Storage.ApplicationData.Current.LocalSettings.Values.ContainsKey("status")) { textBlockDebug.Text = Windows.Storage.ApplicationData.Current.LocalSettings.Values["status"].ToString(); } if (Windows.Storage.ApplicationData.Current.LocalSettings.Values.ContainsKey("events")) { textBoxEvents.Text = Windows.Storage.ApplicationData.Current.LocalSettings.Values["events"].ToString(); } if (this.UcwaApp != null && this.UcwaApp.IsSignedIn) { this.UcwaApp.Me.OnEventNotificationsReceived += this.ProcessEventNotifications; this.UcwaApp.Me.OnErrorReported += this.ReportError; this.UcwaApp.Me.OnProgressReported += ReportProgress; // Show some local user info. textBlockMyName.Text = this.UcwaApp.Me.DisplayName + ", " + this.UcwaApp.Me.Title + ", " + this.UcwaApp.Me.Department + ", " + this.UcwaApp.Me.Uri; textBoxNote.Text = await this.UcwaApp.Me.GetNoteMessage(); textBoxPresence.Text = await this.UcwaApp.Me.GetPresenceAvailability(); var phones = await this.UcwaApp.Me.GetPhoneLines(); foreach (var phone in phones) { textBoxPhones.Text += (string.IsNullOrEmpty(textBoxPhones.Text) ? "" : ", ") + phone.Type + ":" + phone.Number; } imagePhoto.Source = await GetBitapImage(this.UcwaApp.Me.Photo as MemoryStream); } }
public UcwaAppPeople(UcwaApp app) { this.ucwaApp = app; }
public UcwaAppPolicies(UcwaApp app) { this.ucwaApp = app; }
public UcwaAppBatchRequests(UcwaApp app) { this.ucwaApp = app; }