private void OnSelectedPageChanged(MainPage mainPage) { if (mainPage == MainPage.Labels) { Labels.Clear(); dataCenter.GetAllLabels().Do(Labels.Add); SelectedLabel = null; } }
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)); }