Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Application(Label = "@string/ApplicationName", Icon = "@drawable/icon")]
- public class ApplicationState : Android.App.Application
- {
- public ApplicationState()
- {
- }
- private YooManager yooManager;
- public YooManager YooManager
- {
- get
- {
- if (this.yooManager == null)
- this.yooManager = new YooManager();
- return this.yooManager;
- }
- set { this.yooManager = value; }
- }
- private YooBik.YooView currentYooView;
- public YooBik.YooView CurrentYooView
- {
- get
- {
- if (this.currentYooView == null)
- {
- //yooManager = new YooManager();
- this.currentYooView = new YooBik.YooView(YooManager.Manager);
- this.currentYooView.Metadata.ChangeMetadata("GameId", ClientData.GetInstance().CurrentGameId);
- this.currentYooView.Metadata.ChangeMetadata("UserId", ClientData.GetInstance().CurrentUserId);
- YooManager.Manager.AddView(this.currentYooView);
- this.connectYooView();
- }
- return this.currentYooView;
- }
- set { this.currentYooView = value; }
- }
- /// <summary>
- /// Connects views by registering to dedicated yooView events.
- /// </summary>
- private void connectYooView()
- {
- this.CurrentYooView.Added += delegate(object sender, ObservableDictArgs<Guid, IYooLet> args)
- {
- };
- this.CurrentYooView.Removed += delegate(object sender, ObservableDictArgs<Guid, IYooLet> args)
- {
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement