Example #1
0
        private LayoutServiceClient GetLayoutServiceClient(string name, string password)
        {
            var client = new LayoutServiceClient();

            client.ClientCredentials.UserName.UserName = name;
            client.ClientCredentials.UserName.Password = password;

            return(client);
        }
Example #2
0
        public ManagementViewModel()
        {
            _userApi       = new WebAPIClient(new Uri("https://localhost:44319/"), new BasicAuthenticationCredentials());
            _venueService  = new VenueServiceClient();
            _layoutService = new LayoutServiceClient();
            _areaService   = new AreaServiceClient();
            _seatService   = new SeatServiceClient();

            UsersInit();
            VenueLayoutTreeInit();
            AreaSeatListInit();
        }