Com.Aote.ObjectTools.GeneralObject.OnCanSaveExChanged C# (CSharp) Méthode

OnCanSaveExChanged() private static méthode

private static OnCanSaveExChanged ( DependencyObject dp, System.Windows.DependencyPropertyChangedEventArgs args ) : void
dp System.Windows.DependencyObject
args System.Windows.DependencyPropertyChangedEventArgs
Résultat void
        private static void OnCanSaveExChanged(DependencyObject dp, DependencyPropertyChangedEventArgs args)
        {
            GeneralObject go = (GeneralObject)dp;
            if (go.CanSaveEx)
            {
                go.Save();
            }
            go.CanSaveEx = false;
        }