프로젝트

일반

사용자정보

개정판 ed79bff0

IDed79bff0ff095a7369fd548e5aeb6ab1d6c4c7a3
상위 a53dfe45
하위 7065eb73

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

수정

Change-Id: I9d0916083b494394dd73b11ff650384dc38bc6ea

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/MainViewModel.cs
6 6
using System.Threading.Tasks;
7 7
using Markus.Service.Helper;
8 8
using Markus.Service.StationController.StationService;
9
using MaterialDesignExtensions.Model;
9 10

  
10 11
namespace Markus.Service.StationController.ViewModel
11 12
{
......
24 25
            timer.Interval = new TimeSpan(0, 0, 1);
25 26
            timer.Tick += Timer_Tick;
26 27
            timer.Start();
28

  
29
            NavigationItems = new List<INavigationItem>
30
            {
31
                new SubheaderNavigationItem(){ Subheader = "Service Settings" },
32
                new FirstLevelNavigationItem(){Label = "Service1"},
33
                new DividerNavigationItem(),
34
                new FirstLevelNavigationItem(){Label = "Service2"},
35
            };
36

  
37
            NavigationItems.First().IsSelected = true;
27 38
        }
28 39

  
29 40
        private void Timer_Tick(object sender, EventArgs e)
......
47 58
            }
48 59
        }
49 60

  
61
        private List<StationService.ConvertItem> aliveItems;
62

  
50 63
        public List<ConvertItem> AliveItems
51 64
        {
52 65
            get => aliveItems; set
......
56 69
            }
57 70
        }
58 71

  
59
        private List<StationService.ConvertItem> aliveItems;
72
        private List<INavigationItem> navigationItems;
73

  
74
        public List<INavigationItem> NavigationItems {
75
            get => navigationItems; set
76
            {
77
                navigationItems = value;
78
                OnPropertyChanged(() => navigationItems);
79
            }
80
        }
60 81
    }
61 82
}

내보내기 Unified diff

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