프로젝트

일반

사용자정보

개정판 dfc86b71

IDdfc86b714abcbb52baa6b87fd35ec24abc241b27
상위 2decfbdf
하위 0cb12397

김태성이(가) 약 5년 전에 추가함

DataBaseItemsModel Alive Grid 수정

Change-Id: Iee3df7b70ce99c71e1aca094e632ab7253866727

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DataBaseItemsModel.cs
27 27
namespace Markus.Service.StationController.ViewModel
28 28
{
29 29
    //세미
30
    public class DataBaseItemsModel : Mvvm.ToolKit.ViewModelBase, INotifyPropertyChanged
30
    public class DataBaseItemsModel : Mvvm.ToolKit.ViewModelBase
31 31
    {
32 32
        //alive
33 33
        private BackgroundWorker AlivebackgroundWorker;
34 34
        
35
        private bool isLoading;
36 35
        private System.Windows.Documents.FlowDocument connectionLog;
37 36

  
38 37
        private System.Collections.ObjectModel.ObservableCollection<ConvertItem> _AliveItems;
......
46 45
            }
47 46
        }
48 47

  
48
        private System.Collections.ObjectModel.ObservableCollection<ConvertItem> _FilterConvertSource;
49

  
50
        public System.Collections.ObjectModel.ObservableCollection<ConvertItem> FilterConvertSource
51
        {
52
            get => _FilterConvertSource;
53
            set
54
            {
55
                _FilterConvertSource = value;
56
                OnPropertyChanged(() => FilterConvertSource);
57
            }
58
        }
59

  
60

  
61
        private System.Collections.ObjectModel.ObservableCollection<ConvertItem> _RealConvertSource;
62
        public System.Collections.ObjectModel.ObservableCollection<ConvertItem> RealConvertSource
63
        {
64
            get => _RealConvertSource;
65
            set
66
            {
67
                _RealConvertSource = value;
68
                OnPropertyChanged(() => RealConvertSource);
69
            }
70
        }
71

  
72
        private bool isLoading;
73

  
49 74
        public bool AliveIsLoading
50 75
        {
51 76
            get => isLoading; set
......
369 394
        //}
370 395
        //alive
371 396

  
372
        public event PropertyChangedEventHandler PropertyChanged;
373

  
374
        private void NotifyPropertyChanged(String info)
375
        {
376
            if (PropertyChanged != null)
377
            {
378
                PropertyChanged(this, new PropertyChangedEventArgs(info));
379
            }
380
        }
381

  
382 397
        BackgroundWorker backgroundWorker;
383 398

  
384 399
        Random rnd = new Random();
385 400

  
386
        private System.Collections.ObjectModel.ObservableCollection<ConvertItem> _FilterConvertSource;
387 401
        private ConvertItem _SelectRealConvert;
388 402
        private ConvertItem _SelectFilterConvert;
389 403

  
......
398 412
            set
399 413
            {
400 414
                _SelectedStatus = value;
401
                NotifyPropertyChanged("SelectedStatus");
415
                OnPropertyChanged(()=> SelectedStatus);
402 416
            }
403 417
        }
404 418

  
......
411 425
            set
412 426
            {
413 427
                _SelectedCount = value;
414
                NotifyPropertyChanged("SelectedCount");
428
                OnPropertyChanged(() => SelectedCount);
415 429
            }
416 430
        }
417 431

  
......
481 495
        }
482 496

  
483 497

  
484
        public System.Collections.ObjectModel.ObservableCollection<ConvertItem> FilterConvertSource
485
        {
486
            get => _FilterConvertSource;
487
            set
488
            {
489
                _FilterConvertSource = value;
490
                NotifyPropertyChanged("FilterConvertSource");
491
            }
492
        }
493

  
494

  
495
        private System.Collections.ObjectModel.ObservableCollection<ConvertItem> _RealConvertSource;
496
        public System.Collections.ObjectModel.ObservableCollection<ConvertItem> RealConvertSource
497
        {
498
            get => _RealConvertSource;
499
            set
500
            {
501
                _RealConvertSource = value;
502
                NotifyPropertyChanged("RealConvertSource");
503
            }
504
        }
505

  
506

  
507 498

  
508 499
        public ConvertItem SelectFilterConvert
509 500
        {
......
511 502
            set
512 503
            {
513 504
                _SelectFilterConvert = value;
514
                NotifyPropertyChanged("SelectFilterConvert");
505
                OnPropertyChanged(() => SelectFilterConvert);
515 506
            }
516 507
        }
517 508
        public ConvertItem SelectRealConvert
......
520 511
            set
521 512
            {
522 513
                _SelectRealConvert = value;
523
                NotifyPropertyChanged("SelectRealConvert");
514
                OnPropertyChanged(() => SelectRealConvert);
524 515
            }
525 516
        }
526 517

  
......
530 521
            set
531 522
            {
532 523
                _StatusType = value;
533
                NotifyPropertyChanged("StatusType");
524
                OnPropertyChanged(() => StatusType);
534 525
            }
535 526
        }
536 527

  
......
542 533
                if (_IsLoading != value)
543 534
                {
544 535
                    _IsLoading = value;
545
                    NotifyPropertyChanged("IsLoading");
536
                    OnPropertyChanged(() => IsLoading);
546 537
                }
547 538
            }
548 539
        }
......
1132 1123
            set
1133 1124
            {
1134 1125
                _DisplayMember = value;
1126

  
1135 1127
                NotifyPropertyChanged("DisplayMember");
1136 1128
            }
1137 1129
        }

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)