Com.Aote.ObjectTools.GeneralObject.OnIsInitChanged C# (CSharp) Method

OnIsInitChanged() private static method

private static OnIsInitChanged ( DependencyObject dp, System.Windows.DependencyPropertyChangedEventArgs args ) : void
dp System.Windows.DependencyObject
args System.Windows.DependencyPropertyChangedEventArgs
return void
        private static void OnIsInitChanged(DependencyObject dp, DependencyPropertyChangedEventArgs args)
        {
            GeneralObject go = (GeneralObject)dp;
            //如果指明Path改变时,不加载数据,则只有当外界要求,加载数据时,才加载
            if (go.IsInit)
            {
                go.New();
            }
        }