コード例 #1
0
        public MenuSetupResponse Get()
        {
            MenuSetupResponse response = new MenuSetupResponse();

            response.Profiles = GetProfiles().Profiles;

            if (Program.Runtime.CurrentProfile != null)
            {
                response.CurrentProfile = (from p in response.Profiles
                                           where p.Id == Program.Runtime.CurrentProfile.Id
                                           select p).FirstOrDefault();
            }
            return(response);
        }
コード例 #2
0
ファイル: AfterglowService.cs プロジェクト: DigiM4x/Afterglow
        public MenuSetupResponse Get()
        {
            MenuSetupResponse response = new MenuSetupResponse();
            response.Profiles = GetProfiles().Profiles;

            if (Program.Runtime.CurrentProfile != null)
            {
                response.CurrentProfile = (from p in response.Profiles
                                           where p.Id == Program.Runtime.CurrentProfile.Id
                                           select p).FirstOrDefault();
            }
            return response;
        }