Exemple #1
0
        virtual public void CommitUpdate()
        {
            IDataTransactionBasic dataTa;

            if (TryGet(out dataTa))
            {
                dataTa.CommitUpdate();
                State = DataTransactionState.Commit;
                return;
            }
            DataTransactionHelper.CommitUpdate(PropertyDataPairList);
            State = DataTransactionState.Commit;
        }
        public void CommitUpdate()
        {
            object value = CurrentData;

            if (DataTransactionHelper.IsDataTransactionObject(value))
            {
                DataTransactionHelper.CommitUpdate(value);
                State = DataTransactionState.Commit;
                return;
            }
            if (isUpdating)
            {
                oldPropertyValue = null;
                isUpdating       = false;
                OnPropertyChanged();
                State = DataTransactionState.Commit;
            }
        }