예제 #1
0
        private void OnSelectedPageChanged(MainPage mainPage)
        {
            if (mainPage == MainPage.Labels)
            {
                Labels.Clear();

                dataCenter.GetAllLabels().Do(Labels.Add);
                SelectedLabel = null;
            }
        }
예제 #2
0
        public override void Handle(GetLabelListRequest request)
        {
            if (!IsRequestValid(request.SessionId))
            {
                return;
            }

            var labelList = new List <Label>
            {
                Label.DefaultLabel
            };

            dataCenter.GetAllLabels().Do(labelList.Add);

            Socket.SendNetworkMsg(new GetLabelListResponse(labelList));
        }