Beispiel #1
0
        void callback3()
        {
            control_Recycle_Message = new Recycle_Message(this);
            RecycleVM vm = control_Recycle_Message.DataContext as RecycleVM;

            if (vm.List_Messages.Count != 0 || vm.List_ConfirmMessages.Count != 0)
            {
                Thread thread = new Thread(new ThreadStart(threadDo));
                thread.Start();
            }
        }
Beispiel #2
0
        public RecyclePage()
        {
            InitializeComponent();
            int userId = (App.Current as App).UserId;

            userInfo  = (App.Current as App).Userinfo;
            rewardVm  = new RewardVM(userId, callback2);
            recycleVm = new RecycleVM(userId, callback1, callback3);
            if (recycleVm.List_Acquirers.Count != 0)
            {
                callback1();
            }
            if (rewardVm.List_RewardModel.Count != 0)
            {
                callback2();
            }
            map.Children.Add(layer);
            dealWithAppBar();
            MenuContent.ManipulationDelta     += new EventHandler <ManipulationDeltaEventArgs>(MenuContent_ManipulationDelta);
            MenuContent.ManipulationCompleted += new EventHandler <ManipulationCompletedEventArgs>(MenuContent_ManipulationCompleted);
        }