Beispiel #1
0
        void DataControl_CurrentItemChanged(object sender, DevExpress.Xpf.Grid.CurrentItemChangedEventArgs e)
        {
            var oldselectedItem = e.OldItem as CrmFollowUpClient;

            if (oldselectedItem != null)
            {
                oldselectedItem.PropertyChanged -= CrmFollowUp_PropertyChanged;
            }
            var selectedItem = e.NewItem as CrmFollowUpClient;

            if (selectedItem != null)
            {
                selectedItem.PropertyChanged += CrmFollowUp_PropertyChanged;
            }
        }
Beispiel #2
0
        private void DataControl_CurrentItemChanged(object sender, DevExpress.Xpf.Grid.CurrentItemChangedEventArgs e)
        {
            var oldselectedItem = e.OldItem as TableHeaderShareClient;

            if (oldselectedItem != null)
            {
                oldselectedItem.PropertyChanged -= TableHeaderSharedGrid_PropertyChanged;
            }
            var selectedItem = e.NewItem as TableHeaderShareClient;

            if (selectedItem != null)
            {
                selectedItem.PropertyChanged += TableHeaderSharedGrid_PropertyChanged;
            }
        }
Beispiel #3
0
        void DataControl_CurrentItemChanged(object sender, DevExpress.Xpf.Grid.CurrentItemChangedEventArgs e)
        {
            var oldselectedItem = e.OldItem as InvPurchaseAccountClient;

            if (oldselectedItem != null)
            {
                oldselectedItem.PropertyChanged -= InvPurchaseAccountGrid_PropertyChanged;
            }
            var selectedItem = e.NewItem as InvPurchaseAccountClient;

            if (selectedItem != null)
            {
                selectedItem.PropertyChanged += InvPurchaseAccountGrid_PropertyChanged;
            }
        }
Beispiel #4
0
        private void DataControl_CurrentItemChanged(object sender, DevExpress.Xpf.Grid.CurrentItemChangedEventArgs e)
        {
            ProjectBudgetLineLocal oldselectedItem = e.OldItem as ProjectBudgetLineLocal;

            if (oldselectedItem != null)
            {
                oldselectedItem.PropertyChanged -= SelectedItem_PropertyChanged;
            }

            ProjectBudgetLineLocal selectedItem = e.NewItem as ProjectBudgetLineLocal;

            if (selectedItem != null)
            {
                selectedItem.InsidePropChange = false;
                selectedItem.PropertyChanged += SelectedItem_PropertyChanged;
            }
        }
        void DataControl_CurrentItemChanged(object sender, DevExpress.Xpf.Grid.CurrentItemChangedEventArgs e)
        {
            BankStatementLineGridClient oldselectedItem = e.OldItem as BankStatementLineGridClient;

            if (oldselectedItem != null)
            {
                oldselectedItem.PropertyChanged -= selectedItem_PropertyChanged;
            }

            BankStatementLineGridClient selectedItem = e.NewItem as BankStatementLineGridClient;

            if (selectedItem != null)
            {
                selectedItem.PropertyChanged += selectedItem_PropertyChanged;
                SetAccountSource(selectedItem);
            }
        }
Beispiel #6
0
        void DataControl_CurrentItemChanged(object sender, DevExpress.Xpf.Grid.CurrentItemChangedEventArgs e)
        {
            var oldselectedItem = e.OldItem as GLAccountClosingSheetClient;

            if (oldselectedItem != null)
            {
                oldselectedItem.PropertyChanged -= SelectedItem_PropertyChanged;
            }

            var selectedItem = e.NewItem as GLAccountClosingSheetClient;

            if (selectedItem != null)
            {
                this.prevReconciled           = selectedItem._Reconciled;
                selectedItem.PropertyChanged += SelectedItem_PropertyChanged;
            }
        }
        private void DataControl_CurrentItemChanged(object sender, DevExpress.Xpf.Grid.CurrentItemChangedEventArgs e)
        {
            GLOffsetAccountLineGridClient oldselectedItem = e.OldItem as GLOffsetAccountLineGridClient;

            if (oldselectedItem != null)
            {
                oldselectedItem.PropertyChanged -= GLOffSetAccountTemplateGridClient_PropertyChanged;
            }

            GLOffsetAccountLineGridClient selectedItem = e.NewItem as GLOffsetAccountLineGridClient;

            if (selectedItem != null)
            {
                selectedItem.PropertyChanged += GLOffSetAccountTemplateGridClient_PropertyChanged;
                if (selectedItem.accntSource == null)
                {
                    SetAccountSource(selectedItem);
                }
            }
        }
Beispiel #8
0
        public void ChangeGroupEvent(object sender, DevExpress.Xpf.Grid.CurrentItemChangedEventArgs e)
        {
            //변경된 row focusgroup이름 가져와서확인하고 해당하는거에 맞는 dic꺼내서 showdic에 넣기
            FocusGroup = (Group)e.NewItem;
            if (FocusGroup != null)
            {
                ObservableCollection <UC_Organization> values = new ObservableCollection <UC_Organization>();
                bool result = Dic.TryGetValue(FocusGroup.GroupName, out values);
                ShowDicValues.Clear();

                if (result)
                {
                    foreach (var a in values)
                    {
                        ShowDicValues.Add(a);
                    }
                }
                else
                {
                    //MessageBox.Show("그룹에 속한 조직을 가져오지 못 하였습니다.");
                }
            }
        }
Beispiel #9
0
        private void DataControl_CurrentItemChanged(object sender, DevExpress.Xpf.Grid.CurrentItemChangedEventArgs e)
        {
            var oldselectedItem = e.OldItem as CreditorOrderLineClient;

            if (oldselectedItem != null)
            {
                oldselectedItem.PropertyChanged -= SelectedItem_PropertyChanged;
            }
            var selectedItem = e.NewItem as CreditorOrderLineClient;

            if (selectedItem != null)
            {
                selectedItem.PropertyChanged += SelectedItem_PropertyChanged;
                if (selectedItem.Variant1Source == null)
                {
                    setVariant(selectedItem, false);
                }
                if (selectedItem.Variant2Source == null)
                {
                    setVariant(selectedItem, true);
                }
            }
        }