Ejemplo n.º 1
0
        //转换对象
        //public ObjectList TargetObject { get; set; }

        public override void Invoke()
        {
            State  = State.Start;
            IsBusy = true;

            //源对象加载完成后
            sourceObject.DataLoaded += sourceObject_DataLoaded;
            Action.Completed        += Action_Completed;

            Action.Invoke();
            //加载总数
            //SourceObject.Load();
        }
Ejemplo n.º 2
0
        private static void OnCanSaveChanged(DependencyObject dp, DependencyPropertyChangedEventArgs args)
        {
            BatchExcuteAction bea = (BatchExcuteAction)dp;

            if (bea.CanSave)
            {
                bea.Invoke();
            }
            bea.CanSave = false;
        }