当前位置: 首页>>代码示例>>C#>>正文


C# EventManager.RepopulateEvents方法代码示例

本文整理汇总了C#中EventManager.RepopulateEvents方法的典型用法代码示例。如果您正苦于以下问题:C# EventManager.RepopulateEvents方法的具体用法?C# EventManager.RepopulateEvents怎么用?C# EventManager.RepopulateEvents使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EventManager的用法示例。


在下文中一共展示了EventManager.RepopulateEvents方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Start

	void Start()
    {
        _view = this.GetComponent<CoherentUIView>();
        LocalAppURL = _view.Page;
        _view.OnViewCreated += new UnityViewListener.CoherentUI_OnViewCreated(this.OnViewReady);
		_userManager = Object.FindObjectOfType(typeof(UserManager)) as UserManager;
		_eventManager = GameObject.Find("EventManager").GetComponent<EventManager>();
		_eventManager.RepopulateEvents();
		
		_view.Listener.ReadyForBindings += (frameId, path, isMainFrame) =>
        {
            _view.View.BindCall("RequestUsername", (System.Action)RequestUsername);
            _view.View.BindCall("CheckPin", (System.Action<string>)OnJournalClicked);
            _view.View.BindCall("OnSaveEntryClicked", (System.Action<string, string>)OnSaveEntryClicked);
			_view.View.BindCall("DeleteEntry", (System.Action<string>)DeleteEntry);
            _view.View.BindCall("GetCategories", (System.Action)GetCategories);
            _view.View.BindCall("UpdateCategories", (System.Action<string>)UpdateCategories);
            _view.View.BindCall("GetCommerce", (System.Action)GetCommerce);
            _view.View.BindCall("UpdateCommerce", (System.Action<string>)UpdateCommerce);
            _view.View.BindCall("SignOut", (System.Action)SignOut);
            _view.View.BindCall("GetFacebookInfoMB", (System.Action)GetFacebookInfoMB);
            _view.View.BindCall("RetrieveInvitations", (System.Action)RetrieveInvitations);
            _view.View.BindCall("RetrieveBusinesses", (System.Action)RetrieveBusinesses);
            _view.View.BindCall("JoinEvent", (System.Action<string>)JoinEvent);
            _view.View.BindCall("IsFacebookLoggedIn", (System.Action)IsFacebookLoggedIn);
            _view.View.BindCall("SignIntoFacebook", (System.Action)SignIntoFacebook);
            _view.View.BindCall("SignOutOfFacebook", (System.Action)SignOutOfFacebook);
            _view.View.BindCall("BusinessClicked", (System.Action<string>)BusinessClicked);
            _view.View.BindCall("JournalsLoaded", (System.Action)JournalsLoaded);
            _view.View.BindCall("GetFacebookAuth", (System.Action)GetFacebookAuth);
        };
        
        _viewReady = false;
    }
开发者ID:uvcteam,项目名称:univercity3d_uofo,代码行数:34,代码来源:HTMLMemoryBank.cs

示例2: OnEnable

 void OnEnable()
 {
     manager = GameObject.Find("EventManager").GetComponent<EventManager>();
     eventName.text = manager.currentEvent.Title;
     eventDate.text = manager.currentEvent.GetEventDateTime();
     manager.RepopulateEvents();
     CancelPanel.SetActive(false);
     CancelPanel.SetActive(true);
 }
开发者ID:uvcteam,项目名称:univercity3d_uofo,代码行数:9,代码来源:UnionHallCancelSuccess.cs

示例3: Start

    void Start()
    {
        _view = this.GetComponent<CoherentUIView>();
        _view.OnViewCreated += new UnityViewListener.CoherentUI_OnViewCreated(this.OnViewReady);
        _userManager = Object.FindObjectOfType(typeof(UserManager)) as UserManager;
		_eventManager = GameObject.Find("EventManager").GetComponent<EventManager>();
		_eventManager.RepopulateEvents();
		_view.Listener.ReadyForBindings += (frameId, path, isMainFrame) =>
        {
            _view.View.BindCall("GetWeekEvents", (System.Action)GetWeekEvents);
            _view.View.BindCall("PopulateCalendar", (System.Action)PopulateCalendar);
            _view.View.BindCall("CreateEvent", (System.Action<string[], int[]>)CreateEvent);
            _view.View.BindCall("GetEvents", (System.Action<string>)GetEvents);
            _view.View.BindCall("GetCategories", (System.Action)GetCategories);
            _view.View.BindCall("GetMyEvents", (System.Action)GetMyEvents);
            _view.View.BindCall("GetOtherEvents", (System.Action)GetOtherEvents);
            _view.View.BindCall("CancelEvent", (System.Action<string>)CancelEvent);
            _view.View.BindCall("WithdrawEvent", (System.Action<string>)WithdrawEvent);
            _view.View.BindCall("JoinEvent", (System.Action<string>)JoinEvent);
            _view.View.BindCall("GetInvitationEvents", (System.Action)GetInvitationEvents);
        };

        _viewReady = false;
    }
开发者ID:uvcteam,项目名称:univercity3d_uofo,代码行数:24,代码来源:HTMLUnionHall.cs


注:本文中的EventManager.RepopulateEvents方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。